151 questions
1
vote
0
answers
26
views
Angular OIDC authentication fails on iOS because of invalid nonce in state
I have an Angular (19) Application which uses the angular-oauth2-oidc (v19) package. I do initialize the OIDC code flow in the provideAppInitializer function. This application is called from inside an ...
1
vote
1
answer
92
views
Angular OAuth with Docker and hashed routing
I have a confluence of a few things that are all great individually but when I bring them together, they are causing problems.
I have an Angular SPA, updated to Angular 20, that uses a Keycloak server ...
0
votes
1
answer
64
views
Angular Apps Using Same IdentityServer – Silent Refresh Fails When Redirecting Between Two Apps
I have two independent Angular applications (url1 and url2), both hosted on Azure Kubernetes Service (AKS) and configured to use the same IdentityServer (OIDC-based) for authentication.
Application ...
0
votes
1
answer
503
views
Issue: Logout Fails with "AADSTS90015: Requested query string is too long" Due to Large id_token_hint
I'm using Angular with OIDC authentication (via angular-oauth2-oidc) to authenticate users against Azure AD.
However, for users who are part of many Azure AD groups, the id_token_hint value is large ...
0
votes
1
answer
158
views
How to get tokens for custom API and Microsoft Graph using angular-oauth2-oidc with separate configurations
I'm using angular-oauth2-oidc in my Angular application (Angular v18) to authenticate against Microsoft Entra ID (login.microsoftonline.com).
My primary goal is to get an access_token for my backend ...
2
votes
0
answers
524
views
Angular 19 + Oauth2 have problem when I try to login
I'm working on an Angular 19.1.0 application where I want to implement login using Oauth2 (angular-oauth2-oidc version 19.0.0).
My application is not working when I call login function from auth....
0
votes
0
answers
124
views
Ionic app angular-oauth2-oidc hasValidToken() is always false (android fails, ios works)
So, we have an Ionic Angular app for Android and iOS. We use angular-oauth2-oidc package with our server keycloak for users authentication. We noticed today that signing in doesn't work for Android ...
0
votes
0
answers
46
views
Using response mode form_post with angular oauth2 oidc
Is there a way to use the form_post response mode with Angular OAuth2 OIDC? I can pass form_post as a custom query parameter, and the authorization code is correctly posted back.
However, the tryLogin ...
0
votes
0
answers
64
views
Angular oauth2.0 configure for post request
Hi I need to send an post request to a url like example.com with auth2.0 token . I need to send the below details in the request just like we do in a postman for a auth2.0 request.
Token Name
Grant ...
0
votes
0
answers
54
views
OIDC/OAUTH api requests using different public clientId in an Angular app
An Angular (v17) application is made of different Angular elements which have to call different secured (bearer) APIs. The application is using "angular-oauth2-oidc" library from Manfred ...
1
vote
1
answer
567
views
angular-oauth2-oidc with Keycloak Auth Code Flow Access Token Request is not sent
I am considerably new to Oauth2 paradigm. I am using Angular 14 with Keycloak Identity Server with angular-oauth2-oidc dependency and Auth Code flow grant. I am able to successfully login and getting ...
0
votes
1
answer
352
views
get config values using http in angular-auth-oidc-client
I have this environment file in angular :
export const environment = {
production: false,
apiVersion: 'v1',
apiBaseUrl: 'http://localhost:8080/api',
Access_Control_Allow_Origin: 'http://my-app-...
0
votes
1
answer
1k
views
How to Enable Redirect to Requested URL After Authentication in Angular with angular-oauth2-oidc?
I'm currently working on an Angular Stand-Alone application where I'm using angular-oauth2-oidc for authentication. I have successfully configured authentication using the Authorization Code Flow, but ...
2
votes
1
answer
132
views
Authentication Library Config Type Only Import Causes Reference Error
I have an authentication library designed to keep auth stuff consistent across various webapps, inspired by the angular-oauth2-oidc library. I am running into an issue when testing my app, however. In ...
0
votes
1
answer
421
views
Can't get Auth Code from Auth0 or Okta in Angular app using angular-oauth2-oidc
I see an /authorize? call but no /code? message is ever received from auth0 or OKTA.
OK, let me start at the beginning.
Our typical login flow:
The user access our site at localhost:4200/ (just an ...
2
votes
2
answers
735
views
Can't authenticate Google access token on my net.core backend
I'm testing for the first time, how to use net.core API + Angular with Google Authentication, I already achieved to get an access token with my UI application, basically I developed a POC that uses ...
2
votes
0
answers
567
views
Angular-oauth2-oidc adds parameters to redirect uri
I have issue with the iss and also client_id query parameters in the redirect uri which are added in it. We are using code flow with PKCE.
The URL looks something like this:
http://localhost:4200/?iss=...
1
vote
0
answers
420
views
Angular single page application with angular-oauth2-oidc unable to get identity claims. How can I evaluate the token after the initCodeFlow method?
I created a SPA angular application and trying to authenticate the api of a third party to be able to make requests. I encounter the problem, that the getIdentityClaims() method always return null.
...
0
votes
1
answer
295
views
connect/authorize/callback not able to authenticate a user for Angular child app from angular Parent APP - IdentityServer4 SSO
we had a working SSO between Parent MVC app and a client Angular app using IdentityServer4.
We wanted to migrate the parent MVC app to angular [port : 4200 ] Which I did.The login mechanism works for ...
2
votes
1
answer
419
views
How to config OpenID in angular-oauth2-oidc so that some address doesn't need to authenticate
I use the angular-oauth2-oidc project for OpenId in an Angular project.
For some reason, I want to disable the authentication for some routes.
I initialize the code flow in the main component and ...
1
vote
0
answers
135
views
Angular angular-oauth2-oidc v15.0.0 client id not included in logout
I have an application in angular (14.2.0), on logout I am calling this.oidcSecurityService.logoffAndRevokeTokens()
and see this logout request has only postLogoutRedirectUri in params, but not ...
3
votes
1
answer
2k
views
angular-oauth2-oidc does not send access_token to resource server
I am using angular-oauth2-oidc to obtain PKCE flow, but when I call api from resource server, it seem to be not send access_token in the header. I try to check angular-oauth2-oidc get access_token or ...
1
vote
0
answers
657
views
“Invalid token specified error” only at first login in Angular app with oauth2-oidc and keycloak
In my Angular application I’m using oauth2-oidc library and Keycloak to manage authentication.
This is the oauth configuration:
//auth-config.ts
import { AuthConfig } from "angular-oauth2-oidc&...
2
votes
0
answers
710
views
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: ...
1
vote
0
answers
790
views
Angular-oauth2-oidc - Can't get it to use localStorage for tokens
I am trying to follow the example from this page
https://manfredsteyer.github.io/angular-oauth2-oidc/docs/additional-documentation/configure-custom-oauthstorage.html
What I am trying to do is to use ...
1
vote
1
answer
1k
views
How to configure SecurityConfig without formlogin in new oauth2.0 server?
My spring authorisation server depedency :-
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-oauth2-authorization-...
1
vote
0
answers
257
views
How to open login URL with SafariViewController with angular-oauth2-oidc
I'm new to angular-oauth2-oidc. I want to show login page from keycloak service for my Ionic 6 mobile project in embedded browser with Capacitor browser plugin. I've used loadDiscoveryDocumentAndLogin ...
3
votes
1
answer
3k
views
Logout is not working properly - angular-oauth-oidc
I'm using the angular-oauth-oidc library to manage authentication in an angular app. I'm also using this sample as the base for my work: https://github.com/jeroenheijmans/sample-angular-oauth2-oidc-...
1
vote
1
answer
2k
views
How to force a silent login attempt before validationg the access token in angular-oauth2-oidc
I'm using angular-oauth2-oidc for authentication. It's configured to use a 3rd partry SSO identity provider. The setup of my app follows https://github.com/jeroenheijmans/sample-angular-oauth2-oidc-...
1
vote
1
answer
1k
views
Angular Authorization Code Flow with back end REST API
I've used this repository https://github.com/jeroenheijmans/sample-angular-oauth2-oidc-with-auth-guards/ as a test and switched the authConfig settings to a Google app I created. The code flow works ...
3
votes
1
answer
4k
views
angular-oauth2-oidc implementation is (falsely) throwing a CORS error
I'm trying to implement angular-oauth2-oidc Authentication in my angular app. On server side everything is configured correctly (also CORS).
My configuration looks like this:
this.oauthService....
1
vote
1
answer
1k
views
Angular oauth2 oidc library, idp hint for correct identity provider
I'm using angular oauth2 oidc library for user identification inside of keycloak. Is it possible with this library to use idpHint to redirect to a valid identity provider?
I didn't find it as part of ...
1
vote
1
answer
773
views
How Creat Routing after Authentification with angular-oauth2-oidc on curent route
I a have stack Angular 13 with angular-oauth2-oidc: 13.0.1 and angular-oauth2-oidc-jwks: 13.0.1 for OAuth2.
I'm trying to just redirect the user to the current route before redirecting the login ...
1
vote
1
answer
3k
views
Automatic login using angular-oauth2-oidc without presenting the login page
I want to automatically login the user with angular-oauth2-oidc, if there is an active session on the id server. But if thats not the case, i don't want to present the login page but just have in ...
0
votes
0
answers
213
views
Angular + Spring + wso2 - Authorization Code Flow + PKCE
My application has a login page that contains only a button that redirects to the WSO2 Identity Server Authorization Server.
This redirect is done by the library angular-oauth2-oidc.
Then I have a ...
1
vote
0
answers
2k
views
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:
{
"...
0
votes
1
answer
2k
views
How to use a second AuthGuard with the angular-oauth2-oidc library or the complete one
I have an angular application with an OAuth2 authentication that blocks my pages thanks to the 'angular-oauth2-oidc' library, I need to recover a role and permissions with this token via an api.
But ...
1
vote
0
answers
779
views
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 ...
0
votes
1
answer
1k
views
angular-oauth2-oidc - Not passing 'State' and 'Scope'
There is a requirement from the identity server of not to pass 'state' and 'scope' in the URL.
The request is in following format
URL?app=xxx&response_type=code&client_id=yyy&state=zzz&...
0
votes
1
answer
1k
views
spring boot authorization server wildcard redirection list
I'm currently migrating my oauth server to the Spring Authorization Server and want to use the code workflow. My frontend is a Angular App and I use there the angular-oauth2-oidc plugin. More or less ...
2
votes
2
answers
2k
views
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 ...
0
votes
1
answer
1k
views
while using session storage in iframe angular-oauth2-oidc give error of DOMException: Failed to read the 'sessionStorage'
I am using the angular-oauth2-oidc package for authentication and my application is used in iFrame, so when the third-party cookies are blocked, it will give the below error.
core.js:6241 ERROR ...
1
vote
1
answer
7k
views
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 &...
0
votes
1
answer
2k
views
Angular OAuth Code Flow Authentication with IDP(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.
So, I'm able to redirect a user from ...
0
votes
1
answer
4k
views
Angular using oAuth2-oidc: Check if user previously logged out
I have an angular application using these two dependencies:
angular-oatuh2-oidc
angular-oauth2-oidc-jwks
The user can already log in via automatically login functionality when the app starts and also ...
1
vote
2
answers
5k
views
How to configure OAuth Code flow wihout discovery
It is my first try with OAuth. I am using Angular 13 + angular-oauth2-oidc library and I am trying to configure code flow. My problem is that in tutorial discovery document is used by default but my ...
6
votes
1
answer
14k
views
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/...
0
votes
1
answer
3k
views
oauthService.getIdentityClaims() returns null when using angular-oauth2-oidc and keycloak
I'm working on angular-oauth2-oidc and keycloak. I can login (redirecting to keycloak login page), and session has created inside keycloak for loggedin user.
However, oauthService.getIdentityClaims() ...
1
vote
1
answer
1k
views
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 ...
1
vote
2
answers
503
views
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 ...