Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
754 views
in Technique[技术] by (71.8m points)

oauth - Does changing Gmail Login Credentials affect Gmail API credentials.json file later on?

I have set up Gmail API for three different gmail accounts and downloaded credentials.json and stored in visual studio .

If the Gmail Login Credentials are changed in future , would it affect gmail api credentials ?

Thanks

question from:https://stackoverflow.com/questions/65879417/does-changing-gmail-login-credentials-affect-gmail-api-credentials-json-file-lat

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I have set up Gmail API for three different gmail accounts and downloaded credentials.json and stored in visual studio .

Translation, You have created three different projects on Google developer console which will allow you to create three different applications using the Gmail api, and allow users to authenticate your application.

It will also require that you verify three different applications though the Google application verification process. Which can be a costly and lengthy process.

If the Gmail Login Credentials are changed in future , would it affect gmail api credentials ?

That depends on whos login credentials you are talking about.

The user who created the project on Google developer console will still be able to login and administrate the project even if they change their credentials.

Any user who authenticates your application. This is a gray area if you have requested offline access for these users and have gotten a refresh token back and you are using one of the gmail scopes you may need to request a new refresh token as of the user. The last time i checked password changes and gmail scopes require a re-authorization. TBH no matter what your application should be created to request access of the user again if the refresh token fails as they can fail occupationally.

You might find this article i wrote helpful. Google Developer Console Oauth2 credentials


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...