简体   繁体   中英

Multiple scope urls oauth

I want to get user's email address and user contacts through Google OAuth. I have the respective SCOPE urls for both APIs. But how to pass them in one go?

If you are doing it programmatically , in the examples I saw ,usually you should pass an array of strings where each string represents one scope. If you are doing it via HTTP GET/POST request - just concatenate your scopes with a "+" sign. like:

https://accounts.google.com/o/oauth2/v2/auth?&scope=https://www.googleapis.com/auth/userinfo.email+https://www.googleapis.com/auth/userinfo.profile

above answer is working with +, you can get expected output Thanks Mr. Lehsem

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM