Actions when Google links and account fail after returning tokens

Trying to test auth in a web simulator using OAuth2 authorization code stream, https://developers.google.com/actions/tools/web-simulator

See: https://developers.google.com/actions/tools/testing#testing_account_linking_with_google_home_web_simulator

A: https://developers.google.com/actions/develop/identity/oauth2-code-flow

Provided that you have configured your action that requires authorization in relation to your authorization service, when you try to access your action, the Assistant advises you to link your account. In the same answer, the simulator provides a URL to initiate the linking process, see:

"debugInfo": {
    "sharedDebugInfo": [
        {
            "name": "Account Linking Url",
            "debugInfo": "https://assistant.google.com/services/auth/handoffs/auth/start?provider=your-google-project-id_dev&scopes=your-scopes&return_url=https://www.google.com/"
        }
    ]
}

URL- ( ) OAuth2, , . Google , .

:

result_code=FAILURE&result_message=Account+linking+failed

, , , Google .

+2
1

, access_token, refresh_token, expires_in a session_state , , .

Googles, : https://developers.google.com/oauthplayground/

URL- : https://assistant.google.com/services/auth/handoffs/auth/start?provider=your-google-project-id_dev&scopes=your-scopes&return_url=https://www.google.com/

, .

, , :

{
    "token_type": "Bearer",
    "access_token: "xxx",
    "refresh_token": "yyy",
    "expires_in": "zzz"
}

:

result_code=SUCCESS
+4

All Articles