
00urncm0fGsdNobYk356m1.56139295220643E12 (Customer) asked a question.
I am trying different integration options with Okta and my dotnet core 6.0 web application.
I am receiving this error message:
Error: The 'redirect_uri' parameter must be a Login redirect URI in the client app settings: https://dev-945062-admin.okta.com/admin/app/oidc_client/instance/0oa14txmlk8FXs4wQ358*tab-general
In the app, I have added Okta authentication as below. Added appropriate handler for Account/signin. I get the error after a successful signin into Okta. Perhaps I miss configured some settings. Any help/suggestion to troubleshoot/fix this will be highly appreciated.
builder.Services.AddAuthentication(options =>
{
options.DefaultAuthenticateScheme = CookieAuthenticationDefaults.AuthenticationScheme;
options.DefaultSignInScheme = CookieAuthenticationDefaults.AuthenticationScheme;
options.DefaultChallengeScheme = CookieAuthenticationDefaults.AuthenticationScheme;
})
.AddCookie(options =>
{
options.LoginPath = new PathString("/Account/SignIn");
})
.AddOktaMvc(new OktaMvcOptions
{
// Replace these values with your Okta configuration
OktaDomain = builder.Configuration.GetValue<string>("Okta:OktaDomain"),
ClientId = builder.Configuration.GetValue<string>("Okta:ClientId"),
ClientSecret = builder.Configuration.GetValue<string>("Okta:ClientSecret"),
AuthorizationServerId = builder.Configuration.GetValue<string>("Okta:AuthorizationServerId"),
Scope = new List<string> { "openid", "profile", "email" },
});
Thanks,
Muhammad Piracha

Hello @00urncm0fGsdNobYk356m1.56139295220643E12 (Customer) Thank you for posting on our Community page!
Please see our article on this particular error below :
https://support.okta.com/help/s/article/The-redirect-uri-parameter-must-be-an-absolute-URI?language=en_US
Additionally if you need further assistance we recommend to leverage the Okta Developer forums for this type of questions and take advantage of their expertise.
https://devforum.okta.com/
Thank you for reaching out to our Community and have a great day!
--
Help others in the community by liking or hitting Select as Best if this response helped you.