okta / samples-android

samples-android
https://github.com/okta/samples-android
Apache License 2.0
37 stars 52 forks source link

Provide user email when starting (redirect ) login flow #110

Open mpierucci opened 7 months ago

mpierucci commented 7 months ago

Describe the feature request?

I've added a simple okta sign in flow in our app by following This documentation

It seems that works fine but as soons as I trigger the redirect flow, Okta already prompts me to login with a specific user ( I assume this is because its sharing data with the broweser where Ive logged in with okta due to work reasons)

This is all good, but in our flow we first ask the user to enter the email, to then decide if they need ot sign in thorough okta, or google etc.

This means that in rare edge cases, a user my prompt an email, and then be redirected to a okta sign in with a different email. Is there a way to prompt okta which email we are tryign to sign with when executing

CredentialBootstrap.oidcClient.createWebAuthenticationClient()
            .login(
                context = context,
                redirectUrl = BuildConfig.DEFAULT_KEY_OKTA_REDIRECT_CALLBACK
            )

New or Affected Resource(s)

n/a

Provide a documentation link

n/a

Additional Information?

This is mostly a Q but was not sure how to open one