I have this function which returns challenge and goes to Callback function(not shown here).
However Callback function call is initiated with code and state(seen in the browser console), but shows 302 redirect error.
The callback would get hit if we remove the ASP IdentityCore Package from Project, when this package is removed, then HttpContext.User.Identity.IsAuthenticated be true and everything works fine as expected, hitting the callback function with code.
However I want to implement custom login as well(for users/clients who doesnt want Login through Okta). Can anybody help, its been few and it is really frustating that I couldnt find anything such as Okta Initiated login flow and normal login flow through same web application anywhere. Please post if there is any…
Thanks for the suggestion as I atleast came to know the cause of issue about the issue but it is still not working.
Actually, I am using Asp Identity for Custom traditional Login(with Cookie Authentication) and the cookie settings is registered for it as well(shown below screen).
Its really wierd that not much resources are found when we try to use Mixed Mode of Authentication, where we want traditional login and Okta initiated login both with Dot Net Core MVC Application.