Comments (13)
it's solve you problem
logOut() { this.oauthService.logOut(); return false; }
from angular-oauth2-oidc.
I just did some additional investigating... it does not look like angular-oauth2-oidc ever actually calls the logoutUrl
I set to end the session. If I manually hit that URL I set this.oauthService.logoutUrl
to be, it ends the session, but this library never calls that. Any idea why?
from angular-oauth2-oidc.
Try removing the id_token
from your logoutUrl:
this.oauthService.logoutUrl = "https://login.microsoftonline.com/TENANT_ID_GUID/oauth2/logout";
from angular-oauth2-oidc.
I have the same problem. How did you fix this?
from angular-oauth2-oidc.
@songokudbz I used the following code to log out:
this.oauthService.logoutUrl = 'https://login.microsoftonline.com/TENANT_ID_GUID/oauth2/logout?post_logout_redirect_uri=HTTPS://MYAPP.COM';
logOut() {
this.oauthService.logOut();
window.location.href = this.oauthService.logoutUrl;
}
from angular-oauth2-oidc.
It should be called. Try to remove id_token={{id_token}} (which is legacy)
from angular-oauth2-oidc.
@manfredsteyer I tried removing it, but to no avail. I included it in the original post only because it was still in your documentation. I agree with you that it "should" be called, but, nonetheless, it's not. Not sure why you're closing this ticket...
from angular-oauth2-oidc.
Sorry for closing.
I did not manage to reproduce this. Perhaps you can try it with the new version 2 which just landed some minutes ago.
The sample app, committed here, can also do it, so perhaps it is a good idea to find out in which way its usage of the lib differs from the usage in your application.
If you can create a minimal demo-app that reproduces this issue, I'm happy to look over it.
from angular-oauth2-oidc.
Logout works for me. Here's the example app I'm using: https://developer.okta.com/blog/2017/04/17/angular-authentication-with-oidc
from angular-oauth2-oidc.
Discussion came to an end --> closing this. We can reopen it on demand.
from angular-oauth2-oidc.
@im1dermike Have you achieved that....? if yes please send sample code snippet for login and logout both, I am not getting the right way to do so. please help me out.
from angular-oauth2-oidc.
This is happening to me too, so if i refresh the page, call logout method the localStorage is cleaned but no redirection to endsession endpoint.
from angular-oauth2-oidc.
have you tried adal-angular6? @gzimh
from angular-oauth2-oidc.
Related Issues (20)
- refreshToken Promise<TokenResponse> never rejected
- clockSkewInSec and loadDiscoveryDocumentAndLogin HOT 1
- Unauthorized (access_denied) User Redirected back to App, but unhandled by the OIDC plugin
- The most recent versions of angular-oauth2-oidc fail the jump from Ng 15 to Ng 16. HOT 2
- feat: upgrade project to Angular 17 HOT 5
- Silent Authorization Code Flow instead of Refresh HOT 2
- Cors Error in Azure AD (Microsoft Entra ID) when source is localhost HOT 1
- Code flow in a popup HOT 3
- needs migration steps from angular-oauth2-oidc 13.0.1 to angular-oauth2-oidc 14.0.1 or 15.0.1 HOT 1
- Upgrading angular-oauth2-oidc v13.0.1 to V15.0.1 needs changelog
- Support for Angular 17 is missing in README.md annotation
- prevent showing the wildcard route component while doing authentication. HOT 1
- setupAutomaticSilentRefresh() not working. HOT 1
- Local parsing HTTP request error HOT 5
- Upgrade jsrsasign to v11 HOT 9
- Azure AD B2C implicate flow clientAuthError: Invalid state
- adfs using initLoginFlow() returns auth token but getAccessToken() is null
- issuer must use HTTPS (with TLS), or config value for property requireHttps must be set to false and allow HTTP without TLS HOT 1
- Third party cookie and token refresh HOT 2
- Re Login with new Scope
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-oauth2-oidc.