https://github.com/pacificcommunity/aspnetmvcoktaopenidauth
Code sample demonstrating the use of OpenID Connect with Okta for SPC Accounts
https://github.com/pacificcommunity/aspnetmvcoktaopenidauth
Last synced: about 1 month ago
JSON representation
Code sample demonstrating the use of OpenID Connect with Okta for SPC Accounts
- Host: GitHub
- URL: https://github.com/pacificcommunity/aspnetmvcoktaopenidauth
- Owner: PacificCommunity
- Created: 2016-10-05T05:20:35.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-05-31T18:37:49.000Z (almost 2 years ago)
- Last Synced: 2023-10-22T01:10:18.784Z (over 1 year ago)
- Language: JavaScript
- Size: 444 KB
- Stars: 4
- Watchers: 5
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# AspNetMvcOktaOpenIdAuth Demo
Code sample demonstrating the use of OpenID Connect with Okta for SPC Accounts
and local user/passwords. Uses the OpenID state parameter to transfer the returnUrl
to the Okta callback###Setup
1. Open the AspNetMvcOktaOpenIdAuth.sln solution in Visual Studio 2015 and restore all NuGet packages
2. Create an application in Okta (ICT) and obtain ClientId and ClientSecret. Declare localhost:port/Account/Okta and www.spc.int/yoursite/Account/Okta as return URIs
3. Set OpenIDConnect_ClientId and OpenIDConnect_ClientSecret in Web.Config
4. Compile and run the AspNetMvcOktaOpenIdAuth project. It should open the sample web application at http://localhost:63570The files modified are
* App_Start/Startup.Auth.cs
* Controllers/AccountController.cs
* Views/Account/Login.cshtml
* StringHelper.csRegister with your SPC login (email), then authenticate with Okta
In a real application, you'd probably disable public registration