Google Server authentication code makes login error

So I managed to make a new login to Google using

GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)
            .requestScopes(new Scope(Scopes.DRIVE_APPFOLDER))
            .build();

mGoogleApiClient = new GoogleApiClient.Builder(this)
            .enableAutoManage(this /* FragmentActivity */, this /* OnConnectionFailedListener */)
            .addApi(Auth.GOOGLE_SIGN_IN_API, gso)
            .addApi(Drive.API)
            .build();

And it works fine, but now I need an authentication code to send to my server, the problem is that when I add this line .requestServerAuthCode(CLIENTID)to GoogleSignInOption, the login error fails, providing a useless status code Status{statusCode=unknown status code: 12500, resolution=null} I already configured OAUTH and I use the correct client identifier . What could be the reason?

+4
source share
1 answer

Firebase API Google Android- .

, apk. , debug.keystore . Android, /.

ClientID ServerID.

, " -" API. , , .

0

Source: https://habr.com/ru/post/1618223/


All Articles