Skip to content

Library raises a warning for business.manage scope #403

@ThibaultClerc

Description

@ThibaultClerc

The library raises a warning regarding business.manage scope since Google official OAuth 2.0 documentation considers it "refers to a legacy API".

FYI, this is what you get when clicking on the business.manage URL https://www.googleapis.com/auth/business.manage

Image

The only scopes that are officialy mentioned in the Oauth 2.0 API documentation are :

  • openid
  • userinfo.email
  • userinfo.profile

Whenever I'm using google_auth_oauthlib.flow and injecting business.manage inside scopes (in order to get businesses informations from a Google OAuth Account), I'm getting this warning after calling flow.fetch_token:

Scope has changed from

"https://www.googleapis.com/auth/userinfo.email
openid
https://www.googleapis.com/auth/userinfo.profile
https://www.googleapis.com/auth/business.manage"

to

"https://www.googleapis.com/auth/userinfo.email
openid
https://www.googleapis.com/auth/userinfo.profile".

The problem is : Google has no official deprecation plan regarding this, and if I remove business.manage from my scopes, I don't get the businesses informations I need anymore.

What should I do for :

  • being able to continue to fetch the businesses informations from an account ?
  • doing so without getting this warning ?

Thank you

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions