From 640a17ffb80147d1fc48c6004713fc4fe282f8bc Mon Sep 17 00:00:00 2001
From: "Eric J. Duran" <eric.duran7@gmail.com>
Date: Tue, 16 Feb 2016 18:33:45 -0500
Subject: [PATCH] Issue #2670118: Make getPostLoginDestination configurable

---
 config/install/samlauth.authentication.yml | 1 +
 src/SamlUserService.php                    | 3 +--
 2 files changed, 2 insertions(+), 2 deletions(-)
 create mode 100644 config/install/samlauth.authentication.yml

diff --git a/config/install/samlauth.authentication.yml b/config/install/samlauth.authentication.yml
new file mode 100644
index 0000000..5953773
--- /dev/null
+++ b/config/install/samlauth.authentication.yml
@@ -0,0 +1 @@
+post_login_destination: 'user.page'
diff --git a/src/SamlUserService.php b/src/SamlUserService.php
index 7480eb0..e2b6e3e 100644
--- a/src/SamlUserService.php
+++ b/src/SamlUserService.php
@@ -118,10 +118,9 @@ class SamlUserService {
    * Returns the route name that users will be redirected to after authenticating.
    *
    * @return string
-   * @todo make this configurable
    */
   public function getPostLoginDestination() {
-    return 'user.page';
+    return $this->config->get('post_login_destination');
   }
 
   /**
-- 
2.5.4 (Apple Git-61)

