Questions tagged [angular-oauth2-oidc]

The angular-oauth2-oidc library is for managing Authentication and Authorization in an Angular app depending on an OAuth2 and OpenID Connect server.

The angular-oauth2-oidc library is for managing Authentication and Authorization in an Angular app depending on an OAuth2 and OpenID Connect server.

131 questions
8
votes
4 answers

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

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…
Røye
  • 1,077
  • 3
  • 14
  • 27
8
votes
3 answers

Invalid issuer in discovery document expected: angular-oauth2-oidc with Azure B2C

Currently I'm developing an Angular2 App and want to use a B2C Tenant for authentification. It does not works because I get an error: Invalid issuer in discovery document expected: The setup and configuration is exact as in…
AleksBla
  • 166
  • 1
  • 1
  • 7
7
votes
3 answers

Have angular-oauth2-oidc retrieve access token from other tabs

I'm using the angular-oauth2-oidc library in combination with the Implicit Flow (with an IdentityServer4 server). I've successfully set up the Silent Refresh suggestion from the docs. Here's how I bootstrap things in a wrapper service: private…
Jeroen
  • 60,696
  • 40
  • 206
  • 339
6
votes
1 answer

angular-oauth2-oidc tryLogin() not working as expected

I'm using release version of 8.0.4 in my angular 8 project with authorization code flow: here is the code I have this.oauthService.configure(authConfig); this.oauthService.tokenValidationHandler = new JwksValidationHandler(); …
nari447
  • 834
  • 2
  • 11
  • 25
6
votes
4 answers

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

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…
Yukun
  • 257
  • 1
  • 4
  • 10
5
votes
1 answer

Use angular-oauth2-oidc and "silent refresh" without white listing silent-refresh.html

I'm trying to use the angular-oauth2-oidc Silent Refresh implementation in combination with the implicit flow configured in an IdentityServer4 server. I've got a proof of concept working inside an ng new ng-and-ids4 --minimal application with this…
Jeroen
  • 60,696
  • 40
  • 206
  • 339
5
votes
1 answer

angular-oauth2-oidc is not setting access_token

I was following the getting-started guide for the angular-oauth2-oidc library, but the only thing it stores is the nonce value, the access_token doesn't appear anywhere. This is the configuration I have for AuthConfig. export const AUTHCONFIG:…
4
votes
1 answer

How to get access token using angular-oauth2-oidc for PKCE code authentication?

I am using angular-oauth2-oidc for authentication and I dont know how to get access token. I am using PKCE code flow with this configuraion authConfig: AuthConfig = { issuer: 'https://test.com/oauth/token', // requireHttps: false, …
playerone
  • 987
  • 3
  • 22
  • 44
4
votes
1 answer

angular-oidc library code flow without discovery document

we have to implement the oauth2 code flow in our Angular application. We have used until now the implicit flow with no problems, we are using this library https://github.com/manfredsteyer/angular-oauth2-oidc. Now, for the code flow we don't have any…
pixie
  • 507
  • 9
  • 21
4
votes
2 answers

angular-oauth2-oidc forgot password flow

I am setting up B2C on my Angular (8) app with angular-oauth2-oidc. I have a sign in and a sign out policy and I have managed correctly to set up the angular-oauth2-oidc service. At the moment I am using the standard Microsoft login page which…
simon90
  • 123
  • 1
  • 8
4
votes
1 answer

angular-oauth2-oidc CORS ADFS

I am using angular-oauth2-oidc library to connect to ADFS but I get the following error: I am using the following code: app.component.ts: config.issuer = 'https://myserver/adfs'; config.clientId = 'https://myapp/'; config.redirectUri =…
Anonimo
  • 41
  • 1
4
votes
0 answers

Silent refresh in Angular-ouath2-oidc not working after id_token expiration

My current Angular 7 PWA application can't renew the OIDC tokens (obtained via azure adfs) after the id_token it's expired: all the silentRefresh() calls fails with following error: AADSTS50058:A silent sign-in request was sent but no user is signed…
illeb
  • 2,942
  • 1
  • 21
  • 35
4
votes
0 answers

Angular using angular-oauth2-oidc: Valid Token is not stored in Storage

I am using a Spring based Auth-Server which creates JWTs. clients.jdbc(dataSource()) .withClient("sampleClientId") .authorizedGrantTypes("implicit", "password", "authorization_code", "refresh_token") …
Otis Ottington
  • 425
  • 5
  • 17
4
votes
1 answer

Add loading page while validating access token angular oauth2 oidc

I have an angular page using angular-oauth2-oidc with Keycloak OIDC implicit flow. After logging in with Keycloak, it will get redirected back to the landing page. The landing page [app.component.html] will then check with allowAccess() for valid…
4
votes
1 answer

Angular 5 + OAuth2: Token not getting set with libary [angular-oauth2-oidc]

I am trying to configure my Angular app to use the OAuth2 library (angular-oauth2-oidc). In the file auth.service.ts my OAuthService is configured: this.oauthService.loginUrl = 'https://serverdomain.com/authorization/'; …
1
2 3
8 9