auth0-samples / auth0-WinFormsWPF-oidc-samples

Auth0 OIDC Client with Windows Forms / WPF applications
MIT License
22 stars 26 forks source link

Prefill email field #28

Closed tram200 closed 1 year ago

tram200 commented 1 year ago

I am trying to get the Auth0 client to prefill the email field by passing a dictionary to the Task LoginAsync(object extraParameters = null) according to this https://auth0.com/docs/libraries/lock/lock-configuration#params-object it should be possible, but its unclear how to achieve this within c# wpf.

I have tried using the following as the "extraParameters":

But neither have any impact, is there a way to do this?

frederikprijck commented 1 year ago

The OIDC parameter for this is login_hint. Can you verify it works as expected if you use login_hint instead of prefill / email?

tram200 commented 1 year ago

yes this works, thank you for the feedback