Created
February 22, 2022 22:12
-
-
Save loveJesus/c2efba783d7f99504cf8d3b0f64bbfeb to your computer and use it in GitHub Desktop.
Aleluya ejemplo login a Google Oauth
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Aleluya ejemplo login normal por servidor | |
https://accounts.google.com/o/oauth2/v2/auth?response_type=code&client_id=...&scope=openid%20email& | |
state=security_token%3D138r5719ru3e1%26url%3Dhttps%3A%2F%2Foauth2-login-demo.example.com%2FmyHome&nonce=0394852-3290485-2490358&redirect_uri=http%3A//localhost:8001/code_chirho | |
curl https://oauth2.googleapis.com/token \ | |
-d "code=..." \ | |
-d "client_id=..." \ | |
-d "client_secret=..." \ | |
-d "redirect_uri=http%3A//localhost:8001/code_chirho" \ | |
-d "grant_type=authorization_code" | |
# Ejemplo login para copy y paste de codigo | |
# Thank You Jesus for https://hmh.engineering/how-to-get-oauth-access-token-and-retrieve-data-from-google-apis-using-postman-9a95ffe030ae | |
https://accounts.google.com/o/oauth2/auth?client_id=...&redirect_uri=urn:ietf:wg:oauth:2.0:oob&scope=openid%20email&response_type=code | |
curl https://oauth2.googleapis.com/token \ | |
--request POST \ | |
-d "code=...." \ | |
-d "&client_id=..." \ | |
-d "client_secret=..." \ | |
-d "redirect_uri=urn:ietf:wg:oauth:2.0:oob" \ | |
-d "&grant_type=authorization_code" | |
## Aleluya despues de obtenido codigo | |
curl https://www.googleapis.com/oauth2/v1/userinfo?access_token=... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment