Questions tagged [oidc-client]
69 questions
21
votes
5 answers
Azure AD B2C: Clients must send a client_secret when redeeming a confidential grant
I try to setup authentification for an Angular app using authorization code and Azure AD B2C (oidc-client on client side), but I'm getting these errors from Angular:
After looking in B2C audit logs, I found this error message:
Clients must send a…

Maxime Gélinas
- 2,202
- 2
- 18
- 35
11
votes
2 answers
OidcClient.readSigninResponseState: No matching state found in storage - oidc-client-js (Angular)
I am using oidc-client library for integrating with Azure AD in my Angular(9) application. signinRedirect() & signinSilent() functions are working as expected. But for signinPopup(), it is getting the access token successfully in the browser url…

Prateek Kumar Dalbehera
- 2,194
- 3
- 24
- 30
11
votes
4 answers
IdentityServer External auth provider - auth-callback - Redirection - 400 Bad request
I am following
https://www.scottbrady91.com/Angular/SPA-Authentiction-using-OpenID-Connect-Angular-CLI-and-oidc-client and https://www.scottbrady91.com/Angular/Migrating-oidc-client-js-to-use-the-OpenID-Connect-Authorization-Code-Flow-and-PKCE to…

Gopi
- 5,656
- 22
- 80
- 146
5
votes
1 answer
Wildfly 26.1.0 final + elytron-oidc-client + wont propagate user to EJB + user become anonymous
I am trying to upgrade from WF24 to WF26.1.0 final and migrate from the jboss:domain:keycloak module to elytron-oidc-client.
I have installed WF26.1.0 and configured elytron-oidc-client with secure-deployment to use our Keycloak server for…
5
votes
1 answer
Response type is not valid
I am using openidict and oidc-client authentication,
services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
.AddCookie(CookieAuthenticationDefaults.AuthenticationScheme, options =>
{
options.LoginPath =…

Msr Devadiga
- 51
- 3
4
votes
0 answers
Handling cookie not found error with oidc and keycloak
We have a Keycloak 18.0.2 with realms integrated to external IdP (Okta / Ping / Azure). In one realm we started seeing lots of IDENTITY_PROVIDER_LOGIN_ERROR / cookie_not_found in login events. And had users reporting that they were only able to…

Edmilson Santana
- 176
- 1
- 10
3
votes
0 answers
What should IdentityServer return during a code flow?
I'm attempting to use the oidc-client library in Vue.js to do authentication in a SPA. I've been following along with this tutorial: https://damienbod.com/2019/01/29/securing-a-vue-js-app-using-openid-connect-code-flow-with-pkce-and-identityserver4/…

Serberuss
- 2,247
- 4
- 22
- 40
3
votes
1 answer
Get user roles from oidc client
I am using oidc-client for my authorization in my app using angular and asp net core 3.1
How can I get the user roles from asp net thru oidc client?

Ralph Olazo
- 158
- 1
- 10
3
votes
2 answers
modify sign/login UI for oidc-client with .net core react template
using vscode or VS2019 with .net core 3.1, i have created new project with Authentication individuals
using this command dotnet new react --auth Individual
need to change Login screen UI
i can't find any UI for Login component UI
is there any way i…

M Emara
- 49
- 1
- 6
3
votes
0 answers
Angular application can't redirect after OAuth2 login when using HashLocationStrategy
I am working on an existing, in-production Angular 7 application. My task is migrate from a local authentication scheme to an existing company-wide identity provider. The identity provider is compliant with OAuth2. I am using the oidc-client…

Steve H
- 43
- 6
3
votes
1 answer
Pass custom parameter to returnurl from angular oidc-client
I'm trying to pass a custom parameter to returnURL used in login page IdentityServer 4 from angular oidc-client.
Based on the parameter i receive from the returnURL I want to bypass the login website and redirect them to IDP. I'm intending to add…

Saiteja Samala
- 111
- 2
- 7
2
votes
0 answers
Calling UserManager class within oidc-client
As a learning exercise, I'm leverage this Medium Article to create a React app which uses the "oidc-react" library to manage user identity
Within the article, the author instantiates the "UserManager" class in his own class constructor (see line #8…

Chad Burkins
- 155
- 3
- 10
2
votes
0 answers
How to get LoginResult by refresh_token with IdentityModel.OidcClient?
I use IdentityModel.OidcClient to get access_token. After login in browser I call OidcClient.ProcessResponseAsync() to get the LoginResult with the RefreshTokenHandler (and tokens, timestamps, user/claims). Now I create a HttpClient with the…

koalabruder
- 2,794
- 9
- 33
- 40
2
votes
0 answers
Angular oidc-client page reload
I'm using npm package oidc-client in an Angular 10 app with Identity Server 4.
What I'm finding is that when I reload a web page in the browser it always redirects to the home page and doens't remember the current angular route.
I've found that this…

Richard Barraclough
- 2,625
- 3
- 36
- 54
2
votes
0 answers
IdentityServer4 with oidc-client in Angular: login_required error in console when `signinRedirectCallback` is called
I'm using ASP.NET Core IdentityServer4 as the IdP and oidc-client library in my Angular project to integrate the id service. However, after user login, following error occurred twice in the web browser console:
VM10 vendor.js:12638 ERROR Error:…

Sunny Chen
- 37
- 4