Questions tagged [oidc-client]
69 questions
2
votes
1 answer
Asp.Net Core Web Api and ReactJS: authentication with external login provider without identity
Is there a clear and simple way to use OAuth login providers in a ReactJS and Asp.Net Core Web API project?
I am looking for a solution without Identity and Razor pages. Only ReactJS and Asp.Net Core Web API.
And do we need the oidc-client library…

Rashid Mousavy Khoshrou
- 239
- 6
- 15
2
votes
2 answers
AuthorizeService isAuthenticated() subscribe being called multiple times with rxjs concat
I am using a default client side auth service from a visual studio template.
There is a typescript AuthorizeService which has a function called isAuthenticated which calls the below function and checks that it is null or not.
The getUser…

John Mcdowl
- 55
- 4
2
votes
1 answer
Oidc client js , don't use Date.now in client
I'm using oidc-client-js in my client for one of my SPA projects.
I have an identity server which is written in IdentityServer4.
If I change date-time of server manually, the oidc-client-js can't validate response of server in log in user, because…

jsDevia
- 1,282
- 4
- 14
- 37
2
votes
1 answer
netstandard sample for authorization code flow with Identitity4 and OidcClient
Is there any netstandard 2.0 sample for authorization code flow with Identitity4 and OidcClient?
like SystemBrowser that is only in .net core

Mustafa
- 109
- 2
- 8
2
votes
1 answer
ASWebAuthenticatioSession SSO dialog consent issue
When using SFAuthenticationSession or ASWebAuthenticationSession the user is currently prompted to give consent every time the window is presented.
At some point the user opts to Sign Out and again is presented with a UIAlert asking their consent to…

Liwa'a Awar
- 21
- 2
2
votes
1 answer
I'm getting a CORS policy issue when trying to redirect to Azure AD for authentication
I'm getting this error:
Access to XMLHttpRequest at 'https://login.microsoftonline.com/{tenantId}/oauth2/v2.0/authorize/.well-known/openid-configuration' from origin 'http://localhost:4200' has been blocked by CORS policy: No…

Richard77
- 20,343
- 46
- 150
- 252
1
vote
0 answers
OIDC .Net Desktop based application - Get access token without using Browser control (WebBrowser / WebView2)
I am having a .Net Desktop based application (WinForm - .Net framework 4.8). As the backend services are using OAuth2.0, I required to generate accessToken and pass it as header.
Since it's desktop app I am using Authorization Code Grant type which…

ManojP
- 85
- 1
- 9
1
vote
1 answer
oidc-client: IFrame timed out without a response in Vue.js SPA
I have a simple Vue2.js app that is using IdentityServer4 as identity provider. Everything works fine with the old oidc-client library:
https://github.com/IdentityModel/oidc-client-js
with the following settings:
settings: {
authority:…

matteogll
- 803
- 8
- 16
1
vote
1 answer
react-router-dom v6 - oidc | signInRedirectCallback is continuously called - non stop running signInRedirectCallback
oidc initializes and signInRedirectCallback is successful, also sessionStorage is set properly., how ever this signInRedirectCallback is being called continuously ( please see screen shot ).
The html page shows "Callback Loading..." from the…

Prakash Raj
- 149
- 3
- 13
1
vote
1 answer
Silent token renewal with react-oidc-context without page refresh
I have been trying to get silent token refreshes to work using react-oidc-context. This package is built on top of oidc-client-ts. My application uses react-router. By default silent token renewal is turned on with react-oid-context. With this…

Alex Sokoloff
- 41
- 3
1
vote
1 answer
Task.Delay in Dispose method of LoopbackListener in IdentityModel.OidcClient
I'm using IdentityModel.OidcClient's SystemBrowser to request a token in a console app via browser. What I don't understand is, why there is an await Task.Delay(500) in the Dispose method of the LoopbackHttpListener. I see why you would do the…

Kobidor
- 61
- 4
1
vote
1 answer
IdentityModel.OidcClient migration from 3.1.2 to 4.0 in UWP App
I have recently updated the nuget package of IdentityModel.OidcClient from version 3.1.2 to 4.0.
Now I get errors on my existing implementation due to missing properties and couldn't figure how to migrate from XXX to 4.0.
return new…

SurenSaluka
- 1,534
- 3
- 18
- 36
1
vote
0 answers
Angular application Signin Redirect fails with "invalid_grant" error when running on different machine than the IDP
I am using oidc-client with Angular to log in to my identity server. When running both applications on the same machine everything works perfectly.
However when I run my Identity Server on a Web Apps server and my Angular Application on a Static Web…

axelrotter
- 694
- 4
- 22
1
vote
1 answer
Oidc-client identityserver infinite loop angular 10 app on signin-redirect
I have an angular 10 app running on localhost:4200. In my app-routing.module.ts I have configured root path to load the AdminComponent, so if you hit localhost:4200 it will try to load AdminComponent but before it does; I have a authguardservice…

Tumelo
- 301
- 3
- 18
1
vote
1 answer
Unexpected token 'else' in oidc-client.min.js causing react app to refresh after Azure AD login
So I'm using oidc-client on a react app to have my users SSO to Azure AD. Everything works fine...
...except, about every X minutes or so the page will refresh with this in the console (X seems to be between 30 and 60 minutes).
Here's the error…

LCIII
- 3,102
- 3
- 26
- 43