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
3
votes
3 answers

Authorization Code Flow with PKCE in Angular with angular-oauth2-oidc

I want to use the code flow with PKCE in my Angular SPA and for convenience I use this library: angular-oauth2-oidc If you click on the link, it says that with this configuration you will use the code flow with PKCE: let authConfig: AuthConfig = { …
3
votes
1 answer

Connecting to Xero OAuth2 from localhost give CORS Erros

Im connecting to the Xero oauth server 'https://login.xero.com/identity/connect/authorize' through an Angular 7 app using the angular-oauth2-oidc package. In my authConfig i have the following properties export const authConfig: AuthConfig = { …
3
votes
1 answer

Is there a way to set a custom Bearer Access Token within the "angular-oauth2-oidc" package?

I have created a custom endpoint for my Facebook login. This endpoint receives the Facebook access token from the client. I get this token inside my client (Ionic App) with the '@ionic-native/facebook/ngx' package. Inside a controller in the Laravel…
3
votes
1 answer

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

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:…
3
votes
0 answers

Azure AD Open Id Connect in .Net MVC and Angular 6

I am making two apps which are authenticating from an azure ad, these both apps have different client id and within the same tenant, but here I am facing a problem that these both signing in with one click but logout behavior is not same, I have to…
2
votes
0 answers

angular oauth2 oidc - Refresh token is not being set

Hello I am using the following configuration for angular oauth2-oidc function configure(authService: OAuthService){ authService.configure({ requireHttps: false, responseType: 'code token' , oidc: false , skipIssuerCheck: true , …
Manos Kounelakis
  • 2,848
  • 5
  • 31
  • 55
2
votes
1 answer

Query parameters (code, state) not removed after login

When I login to my SPA, it doesn't remove the query parameters code and state from the URL, which is problematic as if we refresh the page, the login flow tries again with the parameters that are in the URL. Example of the URL after logging in…
2
votes
1 answer

After login, hasValidAccessToken is always true when using angular-oauth2-oidc

I have implemented angular-oauth-oidc (version 12.1.0) with Angular 12.2. I have no problems login using Keycloak as the SSO, but I am having an strange behaviour from the library. Everytime, after login, the methods hasValidIdToken and…
Jucaalpa
  • 310
  • 1
  • 4
  • 15
2
votes
0 answers

oauthService.getAccessToken() returns null in angular-oauth2-oidc

below given is the code for authenticating my angular SPA using AD FS using angular-oauth2-oidc initializeOAuthService(): void { this.oauthService.configure({ redirectUri: window.location.origin + '/app/search', requireHttps:…
Sanal M
  • 187
  • 4
  • 17
2
votes
0 answers

Excluding some components from authentication with angular-oauth2-oidc

I use angular-oauth2-oidc for authentication. I am searching for a way to exclude some components from authentication. I have a component, which is only for internal use and do not need any authentication. I plan to secure it with canActivate route…
BennoDual
  • 5,865
  • 15
  • 67
  • 153
2
votes
0 answers

Angular OAuthModule config factory

I need to configure dynamic URLs for the OAuthModule to send the access token at each request. The solution that I'm using (hint), providing an OAuthModuleConfig via a factory method, doesn't seem to work. This is my AppModule where I configure…
1Z10
  • 2,801
  • 7
  • 33
  • 82
2
votes
1 answer

How to update JWT version to 2.0?

I have a JWT coming from Azure after authenticating myself via login.microsoftonline.com, that has the iss value of https://sts.windows.net/... (after doing some research, it seems this is due to the "ver": 1.0 of the JWT). In order to get a JWT…
2
votes
1 answer

Implement OAuth2 code flow with angular-oauth2-oidc

I'm using angular-oauth2-oidc to implement authorization code flow in an angular 10 application. The main idea is pretty easy, I just have an app component with a button. When the user clicks on it, he must be redirected to the authentication…
ssougnez
  • 5,315
  • 11
  • 46
  • 79
2
votes
1 answer

Implement refresh token in Spring Security + Angular

I'm working on this Spring Security implementation with OAuth2 and JWT: According to the author I can access resources using token this way: To access a resource use (you'll need a different application which has configured ResourceServer): http…
Peter Penzov
  • 1,126
  • 134
  • 430
  • 808
2
votes
1 answer

Angular with OAuth 2 Authorization Code grant flow using angular-oauth2-oidc

Authorization Code grant flow is recommended even for public client applications like Angular in up-coming OAuth 2.1. But Angular apps are usually SPA, which means there isn't a built-in server side to store client_secret. Library…
James Sun
  • 111
  • 1
  • 7
1
2
3
8 9