cancel
Showing results for 
Search instead for 
Did you mean: 

invalid_scope homegraph

timomo
Community Member

I turned on the translator. I hope you understand

Goal: I want to register my iot on Google Home

Problem: After receiving the oauth2.0 login token successfully in Google
Action, I want to use 'https://www.googleapis.com/auth/homegraph' 's
requestSync or reportStateAndNotification', but Error 400: invalid_scope
Some requested scopes cannot be seen:
[https://www.googleapis.com/auth/homegraph ] message appears

Test and inspection : Checked the authority of oauth, Client id, secret
key, and scope

Possible cause issue (inaccurate, not sure): Token URL may not be normal in
account linking in google actions

Please help me I want to register iot after authenticating with oauth2.0 on
google home and test with google assistant.

1 Recommended Answer

sipriyadarshi
Solutions Expert
Solutions Expert

Hello @timomo ,

Thank you for reaching out to us with your issue. Based on what you have described above you can setup the OAuth scope from either of the two places : 

  • Custom scope registration in the Oauth as part of Oauth configuration Screenshot from 2024-10-02 10-44-06.png

     

  • In order to make use of the reportState APIs , you need to pass the OAuth in the index.js file , if you are making use of the Washer Codelab

Screenshot from 2024-10-02 10-58-38.png

 

Let me know if you are still facing issues in this regard.

View Recommended Answer in original post

2 REPLIES 2

sipriyadarshi
Solutions Expert
Solutions Expert

Hello @timomo ,

Thank you for reaching out to us with your issue. Based on what you have described above you can setup the OAuth scope from either of the two places : 

  • Custom scope registration in the Oauth as part of Oauth configuration Screenshot from 2024-10-02 10-44-06.png

     

  • In order to make use of the reportState APIs , you need to pass the OAuth in the index.js file , if you are making use of the Washer Codelab

Screenshot from 2024-10-02 10-58-38.png

 

Let me know if you are still facing issues in this regard.

timomo
Community Member

It was successful to implement using the Washer Codelab. However, there is a problem. I first got certified and registered an iot device using tokens, and I want to encourage multiple users to register various devices. So the question is, is there a good way to get user information other than during the first authentication?