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

Logout in Angular OAuth2 OIDC and Spring Authorization Server

I am using angular-oauth2-oidc library in my frontend application. The configuration is done the same way as shown in this project, using APP_INITIALIZER. Following is the AuthConfig: { "issuer": "http://auth.myapp-local.mycompany.com:8080", …
Tapas Bose
  • 28,796
  • 74
  • 215
  • 331
1
vote
0 answers

Reading logged in status from OAuth2 resource server with angular angular-oauth2-oidc

I want to set the users logged in status in the front end. For instance set a sign out button if the user is currently logged in and so forth. This works all fine with the /user endpoint on the resource server to call to verify the authentication…
ChopStick
  • 126
  • 8
1
vote
1 answer

OAuth2 code flow with angular-oauth2-oidc and Keycloak

I'm trying to integrate with an identity provider (Keycloak in my case) in my Angular project. I'm using "angular-oauth2-oidc" library for that purpose. I'm able to redirect a user from my "home" page to the "login" page of Keycloak on a button…
josh
  • 409
  • 1
  • 5
  • 18
1
vote
1 answer

What is the default CallBack URL in manfredsteyer/angular-oauth2-oidc

We have projects using the manfredsteyer/angular-oauth2-oidc GitHub project to do our OIDC flows. In the Authorization Code Flow, after the User logs in at the IDP, the IDP calls a url from the application to pass it the code (and session). What is…
Vaccano
  • 78,325
  • 149
  • 468
  • 850
1
vote
2 answers

Is it possible to utilise Open ID Connect flows for authentication but then have another source of authorization rules?

My situation is this. I have a legacy Angular application which calls a Node API server. This Node server currently exposes a /login endpoint to which I pass a user/pwd from my Angular SPA. The Node server queries a local Active Directory instance…
1
vote
1 answer

Is it a good practice to store token in browser sessionStorage?

Which of the browser provided client-side storage option is better?
bts_dev
  • 83
  • 1
  • 7
1
vote
1 answer

Independent logins for different client application ( identityserver4 | angular-oauth-oidc)

We have multiple clients using response_type:code (Authorization Code Flow with PKCE) to communicate with identity server 4 to log users in. The clients are in angular framework and uses angular-oauth-oidc library and uses localstorage as…
1
vote
1 answer

angular-oauth2-oidc: Does redirect_uri have to be /index.html?

In the PKCE example of the angular-oauth2-oidc library https://manfredsteyer.github.io/angular-oauth2-oidc/docs/additional-documentation/code-flow-+-pcke.html The redirect_uri is window.location.origin + '/index.html' Is this important from a…
user3629892
  • 2,960
  • 9
  • 33
  • 64
1
vote
1 answer

New tab requires login - Angular with ASP.NET Core

I am building an ASP.NET Core Angular app, which comes with an api-authorization.module that relies on angular-oauth2-oidc library for authorization logic. This module is used to connect the Angular app with ASP.NET Identity. It works as expected on…
dzenesiz
  • 1,388
  • 4
  • 27
  • 58
1
vote
1 answer

Is there a silent logout option in angular-oauth2-oidc?

I am using angular-oauth2-oidc in my ionic 4 app and wanted to know if there is a way to implement silent logout since I couldn't find it in the angular-oauth2-oidc docs.
1
vote
1 answer

Silent refresh is not working in angular oauth oidc

I am trying to refresh the access token silently in my Angular SPA. The authentication against the ADFS is completed. it's working fine the configuration is given below: oauthService.configure({ redirectUri: window.location.origin +…
Sanal M
  • 187
  • 4
  • 17
1
vote
1 answer

Angular Oauth2 OIDC - How to check if user is logged in?

I am using Angular 11 with version 10 of augular-oauth-oidc Is this the correct way to check whether the user is currently logged in? @Injectable({ providedIn: 'root' }) export class AuthService { constructor( private oauthService:…
Allen H.
  • 318
  • 6
  • 19
1
vote
2 answers

error loading discovery document - AD FS integration using angular-oauth2-oidc

I am working on an angular SPA which is needed to be authenticated using AD FS. I am using Spring Boot as a backend. this.oauthService.configure({ redirectUri: window.location.origin + '/app/search', requireHttps: true, scope:…
Sanal M
  • 187
  • 4
  • 17
1
vote
1 answer

how to extract roles from access token in Angular-oauth2-oidc

I am using angular-oauth2-oidc lib for authentication. After successful authentication, I want to fetch roles/ other properties from the access token. But as of now, there is no direct method which can parse token and gives its internal…
sandeep
  • 41
  • 7
1
vote
1 answer

angular-oauth2-oidc - Read user claims

I'm using angular-oauth2-oidc's Code Flow in an Angular application. It's working all good, however I cannot read the user claims. I tried using this.oAuthService.getIdToken(), this.oAuthService.getAccessToken(), this.oauthService.getUserInfo() but…
Bruno Farias
  • 785
  • 8
  • 22
1 2 3
8 9