Created
June 19, 2012 20:39
-
-
Save xcommerce-gists/2956410 to your computer and use it in GitHub Desktop.
OpenID Connect integration with PayPal Access
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
HTTP/1.1 200 OK | |
Content-Type: application/json | |
Cache-Control: no-store | |
Pragma: no-cache | |
{ "access_token": "ElAV32hkKGlMT4H86HJK94f54HKDLZdf", "token_type": "Bearer", "refresh_token": | |
"ExLOxBtZp8JJHDHD9495HDHHDHFHFJHF", "expires_in": 900, "id_token": | |
"eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9zZXJ2ZXIuZXhhbXBsZS5jb20iLCJ1c2VyX2lkIjoiMjQ4Mjg5NzYxMDAxIiwiYXVkIjoiczZCaGRSa3F0MyIsIm5vbmNlIjoibi0wUzZftKVpFuc1pGaVsyZsOtkT32E4c6MDHeCvIDlR5ESC0ct8BLvGJDB5954MjCR4_X2GAEHonKw4NF8wTmUFvhslYXmjRNFs21Byjn3jNb7lSa3MBfVsw" | |
} |
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
GET https://www.paypal.com/webapps/auth/protocol/openidconnect/v1/userinfo?schema=openid HTTP/1.1 | |
Authorization: Bearer _your-value_ | |
HTTP/1.1 200 OK | |
Content-Type: application/json | |
{ "user_id": "https://www.paypal.com/webapps/auth/server/64ghr894040044", "name": "Jane Doe" | |
"given_name": "Jane", "family_name": "Doe", "email": "[email protected]", } |
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
GET https://www.paypal.com/webapps/auth/protocol/openidconnect/v1/userinfo?schema=openid HTTP/1.1 | |
Authorization: Bearer ElAV32hkKGlMT4H86HJK94f54HKDLZdf | |
HTTP/1.1 200 OK | |
Content-Type: application/json | |
{ "user_id": "https://www.paypal.com/webapps/auth/server/64ghr894040044", "name": "Jane Doe" | |
"given_name": "Jane", "family_name": "Doe", "email": "[email protected]", } |
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
POST https://www.paypal.com/webapps/auth/protocol/openidconnect/v1/tokenservice HTTP/1.1 | |
User-Agent: _your-value_ | |
Authorization: Basic <Base64 encoding (client_id + ":" + client_secret)> | |
Content-Type: _your-value_ | |
Content-Length: _your-value_ | |
grant_type=refresh_token&refresh_token=_value_&scope=profile |
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
POST https://www.paypal.com/webapps/auth/protocol/openidconnect/v1/tokenservice HTTP/1.1 | |
User-Agent: _your-value_ | |
Authorization: Basic <Base64 encoding (client_id + ":" + client_secret)> | |
Content-Type: _value_ | |
Content-Length: _value_ | |
grant_type=authorization_code&code=_auth-code_ |
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
HTTP/1.1 200 OK | |
Content-Type: application/json | |
Cache-Control: no-store | |
Pragma: no-cache | |
{ "access_token": "E7AV32hkKGlMT37595LZet", "token_type": "Bearer", "expires_in": 900} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment