Questions tagged [angular-auth-oidc-client]

Angular Library for OpenID Connect & OAuth2

Angular Library for OpenID Connect & OAuth2

For more information, see

50 questions
1
vote
1 answer

Silent Authentication using Identity Server

I’m building an SPA app, and am using IdentityServer4 for the authentication. I’m using the new api authorization template found in .net core 3.0 for angular. The template tries to authenticate first using an iFrame, if it fails it tries using a…
1
vote
0 answers

Angular 8 - angular-auth-oidc-client '[WDS] Disconnected!' issue when implement a Cookie storage

I use angular-auth-oidc-client to implement authentication for a web app using Angular 8, It's working fine when storing user data in the localStorage or sessionStorage but when using a cookies storage implementation, Errors like client:172 [WDS]…
1
vote
1 answer

Using Adal.js in Angular 7

I am developing a web application using Angular 7 and this app communicates to a Web API back-end services written in dot.net core. These two applications have been deployed to Azure and all its configurations has been set up: resource group, enable…
1
vote
1 answer

How to send email id when calling identity server 4 to login

I have a angular application and identity server 4 application. I have a login page in angular app which have only user name and when user enters his username , i want to send this username to IDs 4 and based on his username i will ask him to login…
DSP
  • 78
  • 10
1
vote
1 answer

How can I prevent destructive auto-authorization on application startup when using "angular-auth-oidc-client"?

My app uses "angular-auth-oidc-client" in mode "silent_run": true. My app starts with different routes and always with query parameters. Most of the resources in my application do not require authorization on the server. If I needed authorization, I…
Mentor
  • 3,058
  • 1
  • 22
  • 27
1
vote
0 answers

Angular Guard is not able to access the Angular Service Object

I am trying to access the Angular Service Object (I have set the AuthContext in service) but Angular Guard is giving undefined even though that is well set. I have login component, which I call first and internally It uses the Angular Auth…
0
votes
0 answers

Angular with Keycloak getting invalid Code

I'm using the angular-auth-oidc-client package to authenticate myself against my Keycloak client. The problem comes after I log into Keycloak with a user, then im getting: error "invalid_grant" error_description "Code not valid" here is the…
CodeBoy361
  • 61
  • 6
0
votes
0 answers

Set a different value for 'post_logout_redirect_uri' dynamically when using angular-auth-oidc-client

In an Angular application using angular-auth-oidc-client, when a certain route is loaded and the user logs off, I want to send a different 'post_logout_redirect_uri' value to the OIDC server. I set the postLogoutRedirectUri in the OIDC…
Paul
  • 1,224
  • 2
  • 14
  • 31
0
votes
0 answers

angular-auth-oidc-client Refresh

I have an SSO server using Duende Identity Server 6.2 and an ASP API backend. Works great. My angular client works well too. I can login and talk to my API. My problem is after about 30minutes, my token apparently expires and my HTTP calls fail (as…
mike
  • 536
  • 1
  • 6
  • 16
0
votes
0 answers

Cannot retrieve the access token when using silentRenew in angular-auth-oidc-client

I need to pass the access token to a service each time is obtained, so this is what I did: export class AppComponent implements OnInit { constructor( private eventService: PublicEventsService, private oidcSecurityService:…
Paul
  • 1,224
  • 2
  • 14
  • 31
0
votes
1 answer

OidcSecurityService.getAccessToken() passes null as token first time

We use an HttpInterceptor to add bearer token to our API requests. This is for an internal application that requires all users to be authenticated and authorized, even for the home page. I have the code as shown below. On first render, for the first…
Alf Kåre Lefdal
  • 643
  • 1
  • 6
  • 27
0
votes
1 answer

Angular import for local library not resolving paths properly

Sorry for such a noobish question. I'm trying to compile angular-auth-oidc-client to do some contrib, but the builds aren't finding the local library. The imports for what is supposed to be a local library are obviously not there because it's the…
Bluebaron
  • 2,289
  • 2
  • 27
  • 37
0
votes
0 answers

Angular load user roles after authentication with angular-auth-oidc-client

I have the following requirement that I find challenging to implement in Angular. After the user authenticates using and Auth Provider, I need to load his/her roles from backend. Base on roles I need to show certain pages. I want to accomplish this…
Cosmin D
  • 639
  • 1
  • 11
  • 24
0
votes
1 answer

angular-auth-oidc-client Cannot read properties of undefined (reading 'digest')

I set up an angular oidc client for an angular application and deployed to an ec2 machine. Even if the authentication works fine on local machine, on the ec2 machine I receive the following error in the console: ERROR TypeError: Cannot read…
Cosmin D
  • 639
  • 1
  • 11
  • 24
0
votes
1 answer

Understanding the id_token flow from magic link

I am having an SPA application with .NET core backend that uses AD B2C. The SPA angular frontend uses angular-oauth2-oidc to create the loginflow. Sample : this.authConfig = { redirectUri: this.envService.redirectUri, responseType:…