# Pass username to the Okta login page

**URL:** <https://devforum.okta.com/t/pass-username-to-the-okta-login-page/13096>\
**Category:** Questions\
**Created:** [February 26, 2021, 6:02pm UTC](https://devforum.okta.com/t/pass-username-to-the-okta-login-page/13096 "2021-02-26T18:02:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aaron7897](https://avatars.discourse-cdn.com/v4/letter/a/4af34b/32.png) [@aaron7897](https://devforum.okta.com/u/aaron7897)\
**Post date:** [February 26, 2021, 6:02pm UTC](https://devforum.okta.com/t/pass-username-to-the-okta-login-page/13096/1 "2021-02-26T18:02:19Z")

</div>

Our application used [this blog post](https://developer.okta.com/blog/2018/12/05/configure-dotnet-auth-in-owin), almost to a T, to setup Okta authentication. However, one of our requirements is to prefill the username field on the Okta login page (company).okta.com with the username the user filled out on the application side.

Is there any way at all to accomplish this? There was another [similar forum post](https://devforum.okta.com/t/pass-username-to-okta-login-page/6169) pack in September '19, but that wasn’t all-that helpful.

If anyone could provide an example, that would be extremely beneficial too. Thanks!

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [March 2, 2021, 2:12am UTC](https://devforum.okta.com/t/pass-username-to-the-okta-login-page/13096/2 "2021-03-02T02:12:23Z")

</div>

Were you unable to include a “login\_hint” in the parameters for your authorize request?

If you’re using Okta’s .NET middleware, you should be able to include the login\_hint in the AuthenticationProperties dictionary, example shown [here](https://github.com/okta/okta-aspnet/blob/187f33eba4079bc2bbad070a61e5d99c5d9c9e94/docs/aspnet4x-mvc.md#specifying-the-login_hint-parameter) for .NET 4.x MVC and [here](https://github.com/okta/okta-aspnet/blob/187f33eba4079bc2bbad070a61e5d99c5d9c9e94/docs/aspnetcore-mvc.md#specifying-the-login_hint-parameter) for .NET Core.

---

<div class="post-metadata">

**Author:** ![aaron7897](https://avatars.discourse-cdn.com/v4/letter/a/4af34b/32.png) [@aaron7897](https://devforum.okta.com/u/aaron7897)\
**Post date:** [March 2, 2021, 4:15pm UTC](https://devforum.okta.com/t/pass-username-to-the-okta-login-page/13096/3 "2021-03-02T16:15:53Z")

</div>

I had tried the solution you linked to before, but after looking at our package versions, it seems we were on an old Okta.AspNet sdk version. Updating to the recent version seems to have fixed the issue.

Thank you!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [March 3, 2021, 4:16pm UTC](https://devforum.okta.com/t/pass-username-to-the-okta-login-page/13096/4 "2021-03-03T16:16:03Z")

</div>

Closed on March 3, 2021, 4:16pm UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
