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
1
vote
0 answers

Configure angular-oauth2-oidc in other component than the AppComponent

I used the angular-oauth2-oidc library to implement an oAuth authorization code fow with PKCE in my AppComponent. It works fine and I'm even able to pass in some custom query parameters that I need to change the login form that I receive from my…
bwx--2
  • 181
  • 2
  • 11
1
vote
0 answers

angular-oauth2-oidc : Enabling silent refresh results in triggering many number of calls to fetch the token after 10 minutes

Enabling silent refresh using angular-oauth2-oidc results in triggering of a series of calls to fetch the token after ten minutes. It is observed that more than 100 calls are triggered to fetch the new token. I have not set any timeout Factor value,…
amitK
  • 11
  • 1
1
vote
1 answer

Issues with OAuth2 and angular-auth2-oidc Library - PKCE Code Flow

I'm new in OAuth2 and the angular-auth2-oidc library so bear with me if i make some newbie mistakes. WHAT I WANT TO ACHIEVE: A user will click on the login link in the home page, he will be sent to the provider's site to login and then redirect back…
Eddy Freeman
  • 3,207
  • 6
  • 35
  • 55
1
vote
1 answer

Why IdentityServer 4 code flow gets invalid_grant response some times later?

I am using identityserver4 code flow for my angular application. I am using angular-oauth2-oidc library. My configuration is like this: OauthConfig: AuthConfig = { issuer: 'http://mydomain.identityserver4', requireHttps: false, …
barteloma
  • 6,403
  • 14
  • 79
  • 173
1
vote
0 answers

Using angular-oauth2-oidc and need to proxy the requests but can't

I'm getting started using angular-oauth2-oidc with Angular 9, and using the Angular Live Development Server and authenticating with IBM Cloud Identity. I need to proxy requests to that backend and am able to configure the discovery endpoint for…
1
vote
0 answers

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

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:…
eddy
  • 4,373
  • 16
  • 60
  • 94
1
vote
1 answer

OAuth2 and OpenID Connect with angular-oauth2-oidc. Why are JWT`s saved in local storage but not (really) used?

For a project I`m using this library: angular-oauth2-oidc for Support in OAuth 2 and OpenId Connect (OIDC) in Angular. I have everything set up and all is working fine. MainComponent File: export class MainComponent implements OnInit { …
DigitalJedi
  • 1,577
  • 1
  • 10
  • 29
1
vote
1 answer

How to secure an Angular 8 frontend with Keycloak and a Java Spring Cloud microservice backend with gateway, eureka

By advance, I appologize for this looong question! In fact, the quesiton is not so long, but I posted a lot of my code pieces, since I don't really know what is relevant or not to solve my problem... I've been trying to make a simple poc with: -…
1
vote
0 answers

Validating access_token failed, wrong state/nonce

I am authenticating using 'angular-oauth2-oidc' with ping federation, authentication is working good in Chrome browser but in Edge we are getting error 'Validating access_token failed, wrong state/nonce. null'. However we see client sending nonce to…
1
vote
1 answer

Identity Server with Angular Silent Refresh POST denied

I am using Identity Server 4 within a .NET Core site and using it to handle OAUTH with PCKE for an Angular app (using angular-oauth-oidc library). The normal login process works fine but when the website tried to perform a silent refresh it makes a…
Mad Eddie
  • 943
  • 3
  • 12
  • 23
1
vote
1 answer

Cannot run OAuth2 with Okta using angular-oauth2-oidc

I would like to develop an auth module for an Angular app. I use Okta as an identity provider and angular-oauth2-oidc is my choice to implement the auth workflow. I am trying to follow this guide…
laprof
  • 1,246
  • 3
  • 14
  • 27
1
vote
0 answers

Wrongly automatically logging in despite refresh token being expired

I have an angular 8 SPA application that makes use of the angular-oauth2-oidc library to authenticate onto a identity server using the code flow approach. This is all working fine to login and logout including the refresh token to pull new access…
Jack
  • 193
  • 1
  • 2
  • 11
1
vote
1 answer

After OAuth redirect with hash, Angular SPA doesn't load svg's if next http call fails with Options status 0 conn refused? weird edge case

Normal behaviour User clicks google icon, get reidrect to google Oauth, successfully logs in, redirected with state details back to the Angular SPA. The SPA processes the hash in the state and takes the access token to make a HTTP request to our own…
SebastianG
  • 8,563
  • 8
  • 47
  • 111
1
vote
2 answers

Azure B2C for Angular 8 app with angular-auth-oidc-client - b2clogin endpoint POST CORS error

I used Damien Bod's angular-auth-oidc-client in my angular 8 app with "new" Azure B2C…
AlexB
  • 4,167
  • 4
  • 45
  • 117
1
vote
0 answers

Not able to use token-refresh in my Angular7 project

I want to use refresh-token functionality in my angular7 code, tried alot, not able to resolve with the help of existing solutions.