This is a a code sample demonstrating the use of OpenID Connect with Okta and the Microsoft.Owin.Security.OpenIdConnect library.
###Setup
- Open the Okta.Samples.OpenIDConnect.CodeFlow.sln solution in Visual Studio 2015 and restore all NuGet packages
- In the Microsoft.Owin.Security.OpenIdConnect project, remove the reference to the Microsoft.Owin.Security.OpenIdConnect assemblu, then compile the project
- In the Okta.Samples.OpenIDConnect.CodeFlow project, verify that the reference to the Microsoft.Owin.Security.OpenIdConnect assembly points to the Microsoft.Owin.Security.OpenIdConnect project, not the NuGet package.
- Compile and run the Okta.Samples.OpenIDConnect.CodeFlow project. It should open the sample web application at https://localhost:44327
- Click on "Sign in with OpenID Connect" and sign in with the following Okta credentials:
Username: bob Password: pass
- When you're back to the application, you may click on the "My Claims" link to view the claims retrieved from the /oauth2/v1/userinfo endpoint