Configure .NET Authentication in OWIN
This tutorial walks you through how to configure authentication in an ASP.NET web app using OWIN and Okta.
Configure .NET Authentication in OWIN
This tutorial walks you through how to configure authentication in an ASP.NET web app using OWIN and Okta.
Chris H
Iâm having trouble with the login redirect. The links âhttp://localhost:8080/authorization-code/callbackâ seem to be supposed to route to functions in the AccountController file but I havenât been able to get any of those functions to hit a breakpoint.
Please advise.
leebrandt
That URL callback is handled by the Okta.AspNet middleware, then redirected to the page/url the user was originally going to. Let me know if that makes sense.
hoi polloi
I am having an issue similar to what Chris is reporting. When I set the RedirectUri to âhttp://localhost:8080/authorization-code/callbackâ Okta redirects to that URI. If I set the RedirectUri to a controller endpoint defined by my app, I get a âSite cannot be reachedâ error.
Matt Raible
The redirect URI is handled by the Okta.AspNet middleware, like Lee said. If you redirect to a controller defined by your app, youâll need to implement the authorization code flow exchange yourself. If youâre trying to do something not covered by this tutorial, please ask your question on our developer forums. More people will see it there. You can also post to Stack Overflow and use the âoktaâ tag if youâd prefer.
HariShankar Maurya
I am getting this error while login button click
The request was aborted: Could not create SSL/TLS secure channel.
Amoz Tan
How to catch the error below?
âOpenIdConnectMessage.Error was not null, indicating an error. Error: âaccess_deniedâ. Error_Description (may be empty): âUser is not assigned to the client application.â. Error_Uri (may be empty): ââ.â
Aaron
Why are both Authorization Code and Implicit (Hybrid) checkboxes ticked for Allowed grant types on the General Settings for the app? Do we need to tick both?
leebrandt
For .NET Framework yes. Just because of the way .NET FX middleware handles the OIDC redirect stuff, implicit is needed. For .NET Core, just use Authorization Code flow.
Mokshagna Anjani Kumar
Hi did u got solution, how to handle this?
Matt Raible
In your Okta OIDC app, make sure the Everyone group is assigned to your app, or just your specific user.
I had an issue that might help if you get stuck with package version conflicts with OWIN OIDC. Make sure the <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
to remove the xmlns namespace just empty configuration tag.
``