Questions tagged [oidc-client]

69 questions
1
vote
1 answer

IdentityServer4 sample code gives unauthorized_client error

I am trying to learn the Identitymodel.OidcClient package and started by testing one of the provided samples: the ConsoleSystemBrowser sample. It's a pretty straightforward sample, and I was expecting it to give me a fully configured and working…
user9366235
1
vote
3 answers

this.user is undefined when fetch data from app.component in angular -oidc-client

I am using oidc-client.js in my angular project. Right now users could log-in and log out and it works fine. the only problem is that when I want to call a service in app.component, in the interceptor the user is not authenticated. auth.service is…
osman Rahimi
  • 1,427
  • 1
  • 11
  • 26
1
vote
1 answer

OIDC js library reponse cookies are not stored and not attaching for subsequent requests

I am using authcodeflow with PKCE. Using OIDC js library in the frontend, making calls to adfs getting an auth code and then calling my backend api. The backend api which calls adfs server get the access token and the backend api returns the token…
1
vote
1 answer

Promisse in constructor don't finish before method runs in angular 10

promise from oidc-client in angular 10 constructor is taking too long to resolve, the isLoggedIn function is being called before the constructor places de value in the user variable. this is my code: import { UserManager, UserManagerSettings, User }…
1
vote
1 answer

OIDCClient LogoutAsync throwing SemaphoreFullException

I'm connecting to Identity Server 4 from a WPF application and I am trying to perform a logout. However, I get a SemaphoreFullException in my WpfEmbeddedBrowser when calling _oidcClient.LogoutAsync(). Initally I thought maybe I shouldn't use the…
Ethan Shoe
  • 466
  • 1
  • 7
  • 20
1
vote
0 answers

Logout is not clearing all process using oidc client with identity server 4

We are using Office.context.ui.displayDialogAsync for authentication with OAUTH library (Oidc-client) and below are the findings. Kindly help on the same. As per attached code we were able to get access token in taskpane.ts file as args in…
1
vote
1 answer

Staying on the same page after login oidc-client

I'm working on my first ASP.NET Core web application with SPA using Angular 9. This is my first experience with Angular at all, I've been following a tutorial in Pluralsight. But I've been having difficulties with staying on the same page after…
gris
  • 131
  • 1
  • 11
1
vote
1 answer

OAuth2 Implicit Flow with C# Windows Forms

I'm developing a c# windows forms app that needs to authenticate using the Implicit Flow (The client does not accept another flow). As requirement, I need to open the default system browser to authenticate (so no embedded web view on the…
António
  • 975
  • 1
  • 12
  • 31
1
vote
2 answers

OIDC Client encoding URL during SigninRedirectCallback

I'm building an app with an external Identity Server. Login works fine, only when being sent back to the signin-oidc page something weird happens. I'm using the HashLocationStrategy so the URL looks like…
Inbar Azulay
  • 247
  • 1
  • 4
  • 25
1
vote
1 answer

Authorization code flow with Identitity4 and OidcClient

For a Winforms Desktop application I will use the authorization code flow with PKCE. As Identity provider I use IdentityServer and as client library OicdClient. Next step I have to decide which Browser to use for the user…
Mustafa
  • 109
  • 2
  • 8
1
vote
0 answers

oidc-client - uses own URL for login

I have small vue app that authenticate users with Keycloak backend. I use oidc-client to redirect clients to authentication page. Whenever the login logic triggers, the URL uses client's url and not the authority. (all query params are correct).…
Roi Shabtai
  • 2,981
  • 2
  • 31
  • 47
1
vote
2 answers

How to fetch AccessToken

I am using the following plugin( @axa-fr/react-oidc-context ) in React to enable authentication with AzureAd. Now I need to access the access_token in ApolloClient after the authentication is done. I am not sure how to fetch the access_token in non…
thotam
  • 941
  • 2
  • 16
  • 31
1
vote
0 answers

Handling silent renew of expired token - oidc code flow- in angular 7?

How to handle access token expiration in angular application that uses oidc code flow? I set the automaticSilentRenew to true in oidc client settings, which is triggering a call to the token endpoint and getting new access token, then I listen to…
tlr_k
  • 11
  • 3
0
votes
1 answer

COMException: Cannot change thread mode after it is set on EnsureCoreWebView2Async(null) - faulty implementation in IdentityModel.OidcClient?

I am trying to build interactive login functionality into my .NET 6 Winforms Application, using Identity Server 6 as my IDP. I have modelled my client-side code on an Identity Server reference example for WinForms. The reference example project is…
0
votes
1 answer

sso with OidcClient and azureAD access the access token

As per below code I am able to successfully log in and obtain an access token. However, when I make a request to the https://login.microsoftonline.com/{tenant-id}/openid/userinfo API at runtime, I encounter a CORS error. My code is as…