GUACAMOLE-805: Handle OpenID Connect "id_token" parameter regardless of location within URL fragment.
This commit is contained in:
1 parent
2362cfcabe
commit
21f1ee6ac3
2 files changed
+36
-21
No files matched your search
@@ -31,24 +31,3 @@ angular.module('guacOpenID').config(['formServiceProvider',
|
||||
});
|
||||
|
||||
}]);
|
||||
|
||||
/**
|
||||
* Config block which augments the existing routing, providing special handling
|
||||
* for the "id_token=" fragments provided by OpenID Connect.
|
||||
*/
|
||||
angular.module('index').config(['$routeProvider',
|
||||
function indexRouteConfig($routeProvider) {
|
||||
|
||||
// Transform "/#/id_token=..." to "/#/?id_token=..."
|
||||
$routeProvider.when('/id_token=:response', {
|
||||
|
||||
template : '',
|
||||
controller : ['$location', function reroute($location) {
|
||||
var params = $location.path().substring(1);
|
||||
$location.url('/');
|
||||
$location.search(params);
|
||||
}]
|
||||
|
||||
});
|
||||
|
||||
}]);
|
||||
Reference in new issue
Block a user