ASP.NET Core Controller authorization issue due to lack of redirect uri in OKTA
As I was playing with the Sitecore MVP Site local instance' asp.net core controllers, I realized, I wasn't able to access the application controller due to OKTA authorization issues. For some overview, here is how OKTA helps in authorization of the MVP website:
To explain the issue better, here is the SignIn link in the Sitecore MVP Site;
A couple of step backwards, if you access this asp.net core controller endpoint without signing in, you will get this json response:
For some more background, you can see this logic in the corresponding controller methods:
So, now the goal is to login to the site in order to be able to get authenticated and get access to these api methods but, I received the following error on clicking the signin link in the home page header:
Error: The 'redirect_uri' parameter must be a Login redirect URI in the client app settings: https://dev-8977927-admin.okta.com/admin/app/oidc_client/instance/0oa3h5v0tmbaDowYO5d7#tab-general
Comments
Post a Comment