You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a WPF .NET 4.8 app that needs to be switched to OIDC.
I have looked at the Samples, and managed to get the login working, however it only works on the first login, when I close my app and start it again, my browser gets launched, but i will not get redirected to my app. If I manually delete the cookies from my identity provider, then after I launch my app, it works again.
What could be causing this?
_options = new OidcClientOptions()
{
Authority = "https://identityprovider.test.com",
ClientId = "myApp",
Scope = "openid profile email edit address",
RedirectUri = "myapp://callback",
};
_client = new OidcClient(_options);
_state = await _client.PrepareLoginAsync();
// open system browser to start authentication
OpenBrowser(_state.StartUrl);
// Wait for the user to login
var result = await ReceiveSignInCallback(); // this is where it hangs once I launch my app again after a short time, clearing my cookies fixes it
RestAPI.InitializeClient(result.AccessToken;);
Also when my browser is launched the user does not need to enter credentials, he is verified by our authority provider through his windows credentials.
Thank you in advance
The text was updated successfully, but these errors were encountered:
I have a WPF .NET 4.8 app that needs to be switched to OIDC.
I have looked at the Samples, and managed to get the login working, however it only works on the first login, when I close my app and start it again, my browser gets launched, but i will not get redirected to my app. If I manually delete the cookies from my identity provider, then after I launch my app, it works again.
What could be causing this?
Also when my browser is launched the user does not need to enter credentials, he is verified by our authority provider through his windows credentials.
Thank you in advance
The text was updated successfully, but these errors were encountered: