-
Notifications
You must be signed in to change notification settings - Fork 1
11‐ Auth
Prayag edited this page Nov 17, 2023
·
1 revision
CLIENT_ID=???
CLIENT_SECRET=???
SCOPE=https://www.googleapis.com/auth/cloud-platform
AUTH_ENDPOINT=https://accounts.google.com/o/oauth2/v2/auth
URL="% AUTH_ENDPOINT%?client_id=%CLIENT_ID%&response_type=code&scope=%SCOPE%&access_type=offline&redirect_uri=urn:ietf:wg:oauth:2.0:oob"
curl \
--data client_id=%CLIENT_ID% \
--data client_secret=%CLIENT_SECRET% \
--data code=%AUTH_CODE% \
--data redirect_uri=urn:ietf:wg:oauth:2.0:oob \
--data grant_type=authorization_code \
https://www.googleapis.com/oauth2/v4/token