Okta IDP prefill userName

I am trying to perform okta login in my application. In the Auth Request, I am passing

.SetPrompt(“login”)
.SetLoginHint(EmailId)

This works perfectly fine & prepopulates the username in login page,

But If I pass IDP in AdditionalParameters like below the username is not pre populating in login page.

IDictionary<string, string> additionalParams = new Dictionary<string, string>
            {
                { "idp", Idp },
            };


.SetAdditionalParameters(additionalParams)
.SetPrompt("login")
.SetLoginHint(EmailId)

Any help is appreciated!

Are you trying to pre-populate the username on the IdP’s login page? What IdP are you testing this with?

@andrea Yes, I’m trying to pre-populate the username on Idp’s login page.
Idp type is SAML.