Firebase AuthUI Android skip OAuth approval if already approved

21 views
Skip to first unread message

Michael Marshall

unread,
Feb 9, 2020, 11:38:56 AM2/9/20
to Firebase Google Group
I've integrated Twitter authentication into my Android app via Firebase AuthUI.

Every time I try the Twitter login (and it may happen with other providers, haven't tried), I'm still routed to the Twiitter OAuth "approve app" page, even though it is obvious I'm still logged into Twitter and that I've done this before.

The Twitter privacy settings say my app is already approved for access.

Shouldn't this page be skipped if I've already approved my app for Twitter login and automatically redirect?




Kato Richardson

unread,
Feb 10, 2020, 12:18:04 PM2/10/20
to Firebase Google Group
Also asked on Stack Overflow here

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/d9b63844-c201-4132-b597-a977e41e3626%40googlegroups.com.


--

Kato Richardson | Developer Programs Eng | kato...@google.com | 775-235-8398

Sam Stern

unread,
Apr 6, 2020, 7:03:20 PM4/6/20
to Firebase Google Group
Hi Michael,

Can you explain a little bit more about this flow?  Are you going to your sign-in screen even when FirebaseAuth.getCurrentUser() is non-null?  Or are you in a situation where you're signed into Twitter but not signed in to Firebase through Twitter?  I ask because in some situations this could be working as intended, like if you get to the sign in screen in one of these two situations:
  1. New device - in this case you get the OAuth prompt but it says you have already approved the application.
  2. Same device but recently signed out - if you call FirebaseUI's signOut method I believe we sign you out of the IDP as well, so you'd get prompted again.
- Sam

Reply all
Reply to author
Forward
0 new messages