Pass Username to OKTA login page

I am implementing OKTA SSO on a ASP.NET webform web app.

How can I prepopulate the username on the OKTA login page.

Example of Login Code…

var properties = new Dictionary<string, string>();
HttpContext.Current.GetOwinContext().Authentication.Challenge(
new AuthenticationProperties { RedirectUri = “/Login.aspx?SSO=true” },
OpenIdConnectAuthenticationDefaults.AuthenticationType
);
Response.SuppressFormsAuthenticationRedirect = true;
}
else
Response.Redirect("/Login.aspx?SSO=true", false);

thanks

Tomy

Hi @tomy.bolanos

If you are redirecting the user to /authorize endpoint of your Okta tenant and do an OIDC endpoint, you can pass “login_hint” query parameter containing the user’s username. This will prepopulate the username inside the Okta Sign-in Widget.