Firebaseui-android: Auth - add Google server auth code

Created on 15 Jun 2017  路  3Comments  路  Source: firebase/FirebaseUI-Android

I'm a bit of a newbie to FirebaseUI, but one thing that would be helpful as an enhancement to Auth would be to allow an option for GoogleProvider to provide the Google server auth code in addition to the id token. I believe this could be added in GoogleProvider.getSignInOptions by adding a call to requestServerAuthCode to the GoogleSignInOptions.Builder call. Then if the auth code could be returned as part of IdpResponse, it could be used for subsequent calls to (for example) People api.

auth feature request

Most helpful comment

@dmikesell thanks for the suggestion. If we choose to enable this it might make sense to just allow the user to pass in any GoogleSignInOptions they want.

All 3 comments

@dmikesell thanks for the suggestion. If we choose to enable this it might make sense to just allow the user to pass in any GoogleSignInOptions they want.

This is related to #806, we need a better way to pass options in/out.

Now tracking this in #1022

Was this page helpful?
0 / 5 - 0 ratings