angular-oauth2-oidc

Cannot get Username / given_name when using angular-oauth2-oidc and Identity Server 4

时间秒杀一切 提交于 2020-12-08 06:47:23
问题 I am following the Implicit Workflow example from the angular-oauth2-oidc documentation. Everything works well in my Angular app, and I can login (during which I am redirected to Identity Server), get my token and use this token to access my Web Api. However, I have noticed that the "given_name" claim is null, and therefore, the username is not displayed on the login page. Specifically, the following method from the sample code appears to return null: public get name() { let claims = this

Angular oauth2-oidc - What part of the configuration retrieves the token and where does it store it?

懵懂的女人 提交于 2020-08-10 20:22:27
问题 I'm trying to use the library angular-oauth2-oidc in my application. This is my AuthConfig const adsfUrl = 'https://xxxx.xxxxx.xxx/adfs'; export const ADSF_AUTH_CONFIG: AuthConfig = { redirectUri: window.location.origin, clientId: 'debdb149-65c3-4ac7-99c5-acbfa59f66d0', requireHttps: false, loginUrl: adsfUrl + '/oauth2/authorize', issuer: adsfUrl, scope: 'openid profile email', responseType: 'id_token token', oidc: true, logoutUrl: adsfUrl + '/ls/?wa=wsignoutcleanup1.0&wreply=' + location

How should handle users logout use case when multiple browser tabs are opened

时光总嘲笑我的痴心妄想 提交于 2019-12-12 11:33:27
问题 I am using angular-oauth2-oidc with Identity Server 4. Users need to Login via OpenId Connect Implicit Flow. My Id and Access token are stored in the web browser localStorage. When user opens multiple browser tabs and then user logs out from one of the tabs, how should I handle rest of the tabs? I have tried to catch session_terminated events , and they try to log the user out. However, it does not redirect the user back to the login page. this.oauthService.events.filter(e => e.type ===

https://appengine.google.com/_ah/logout still working?

我们两清 提交于 2019-11-29 15:16:17
Until a few days ago I could use the log out from google account procedure mentioned (among several others) in this link . The recommended log out URL is similar to: https://www.google.com/accounts/Logout?continue=https://appengine.google.com/_ah/logout?continue=http://localhost:4200/index.html But all of a sudden when navigating to the recommended URL, a redirection notice page appears instead of navigating directly to http://localhost:4200/index.html In this previous question a similar problem was reported, but also that the problem solved itself shortly after Can anyone confirm that the log

https://appengine.google.com/_ah/logout still working?

巧了我就是萌 提交于 2019-11-28 09:14:31
问题 Until a few days ago I could use the log out from google account procedure mentioned (among several others) in this link. The recommended log out URL is similar to: https://www.google.com/accounts/Logout?continue=https://appengine.google.com/_ah/logout?continue=http://localhost:4200/index.html But all of a sudden when navigating to the recommended URL, a redirection notice page appears instead of navigating directly to http://localhost:4200/index.html In this previous question a similar