Hi ,
I am a new bie to Okta. I have application developed in asp.net core razor pages,where i am using Okta login authentication. Tried to make necessary changes to the asp.net core 6 mvc example given in Github. The issue that i am facing is once i login the page navigates to default error page in asp.net core. I am stuck at this part. Appreciate your help to figure out this issue. Thanks in Advance
Hi louie,thanks for your reply!
Its an intranet application.
When i changed the highlighted if condition it was redirecting to home page. But from home page when i access other pages its showing the error page.
public IActionResult OnPostAsync(string sessionToken)
{ if (HttpContext.User.Identity.IsAuthenticated)
{
var properties = new AuthenticationProperties();
properties.Items.Add(“sessionToken”, sessionToken);
properties.RedirectUri = “/Home”;