error 12500 in google sign in 8.3.0 when requesting “.requestServerAuthCode”

前端 未结 3 1514
心在旅途
心在旅途 2021-01-03 07:15

With the new google sign 8.3.0 the login works until requesting \".requestServerAuthCode(\"client id from web application under Oauth 2.0 client ids\") .

Looks some

3条回答
  •  醉话见心
    2021-01-03 07:46

    This actually happens if you're asking for permissions which aren't added in OAuth Consent Screen.

    https://developers.google.com/identity/protocols/googlescopes?hl=en_US#drivev3

    1. Make sure you check the required scopes given in the link above,add only them, and save it after adding them.
    2. Ask permission for the scopes added,only the added scopes not any other critical permissions which haven't been registered for your app.
    3. You can request sensitive scope permissions based on your apps need but make sure to add required scopes after verification.(If you add a sensitive scope, such as scopes that give you full access to Gmail or Drive, Google will verify your consent screen before it's published.)

    Also if this is not the case , then you can check your proguard. Sometimes they tend to work only in debug builds. Proguard rules have to applied for certain google dependencies.

提交回复
热议问题