Open pottabathini opened 8 years ago
having the same problem, I'm insterested into the fix.
I worked that around not using the directive's setting but rather implementing the logout event and doing the redirection myself.
$rootScope.$on('oauth:logout', function() {
if(!($rootScope.accessToken === null || $rootScope.accessToken === undefined)){//otherwise infinite redirect loop
$rootScope.accessToken = null;
var tempIdToken = $rootScope.idToken;
$rootScope.idToken = null;
var redirectLink = URLTOENDSESSIONENDPOINT+ '?post_logout_redirect_uri=' + POSTLOGOUTURL + '&id_token_hint=' + tempIdToken;
$window.open(redirectLink, '_self');
}
});
I am trying to integrate oauth-ng in my application by setting up manual configuration. we observe following issues.