
6iwh6 (6iwh6) asked a question.
I have 2 kinds of users: manually added and the remote users received from the Google identity provider.
This is my authentication URL:
When I set the `login_hint` to a local user the flow behaves correct, but when I set it to the gmail user it automatically logs in to some other gmail user that has been logged in before and returns me its access_token.
Cleaning browser cookies doesn't help.
Manually clearing session in "Clear User Sessions" in Directory>People>logged_user doesn't help.

Hello @6iwh6 (6iwh6) Thank you for reacting out to our Community!
At this time this is expected behaviour as the user has an existing Session on Gmail. This session can not be terminated from Okta's end, this session should be terminated from the User's side before trying this, if you want the app to do it, users have to clear the Google session themselves.
My advice would be to leverage the Okta Developer forums for this type of questions and take advantage of their expertise.
https://devforum.okta.com/
Hope this helps and if this answered your question, please mark this as Best Answer!