I’ve created a test SAML-based application in the OKTA developer portal. Using the .NET based example web project provided by Okta, I’ve setup the code as outlined in the documentation found here:
How to Authenticate with SAML in ASP.NET Core and C# | Okta Developer
The one notable change I’ve made is running this application on .NET 8.0, however, I don’t believe the issue I’m seeing has anything to do with the platform itself.
I’m able to log in with OKTA as the IdP and after successful login, the system attempts to redirect the user back to the Login page instead of the “AssertionConsumerService” end point as outlined in the documentation. I’ve setup the OKTA SAML settings for my test application as such:
Single Sign On URL:
https://localhost:7182/Auth/Login
Recipient URL:
https://localhost:7182/Auth/AssertionConsumerService
Destination URL:
https://localhost:7182/Auth/Login
Default Relay State:
I’ve tried various combinations of the above settings to see if the redirect ever attempts to load /Auth/AssertionConsumerService. It does not. It continuously redirects back to /Auth/Login and then back over to “…/sso/saml?samlRequest=…” at my devolopment app domain on dev.okta.com.
If required, I can zip up the sample code to provide for debugging purposes.
Does anyone have any insight as to what I’m doing wrong here?