简体   繁体   中英

“Single Sign on” using OKTA in an MVC Application

I need to implement the "Single Sign on" using OKTA in an MVC Application. I have created an account on Okta and created an application.

I can able to get the details such as Identity Provider Single Sign-On URL,Identity Provider Issuer and X.509 Certificate from OKTA.

But I am not able to configure it in to the MVC site.

Does any body know how can I configure "Single Sign on" using OKTA in an MVC Application?

I'd recommend taking a look at the sample applications available on github.com/oktadeveloper .

For SSO, this ASP.NET project is a great example using OpenID Connect to walk you through this process.

We're currently adopting Okta, and chose to use SAML. I found the info at Okta Blog very helpful. In this Blog they reference a module by Kentor IT, which makes implementing SAML really easy.

Keep in mind, the currentversion is 0.20, so you might have to tweak a little.

  • .Net version should be 4.6.2, or you have to go to SHA1 encryption instead of SHA256
  • We had to handle the way Okta gives back groups, where we needed roles (hint: Within 'Group Attribute Statements' set Name to ' http://schemas.microsoft.com/ws/2008/06/identity/claims/role ' and Name format to URI. This way groups will be added as Role claim to the SAML token

Happy Okta'ing

Gerwin

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM