Last active
November 7, 2016 14:51
-
-
Save neverendingqs/60292771a382439fcdc9369aeac09897 to your computer and use it in GitHub Desktop.
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
+-----------------+ +-----------------+ +-----------------+ | |
| | | | | | | |
| Sample App | | User / Browser | | Auth Server | | |
| | | | | | | |
+--------+--------+ +--------+--------+ +--------+--------+ | |
| | | | |
| | | | |
| GET /auth | | | |
| <-----------------------------+ | | | |
| | | | |
| | | |
| (302) GET /oauth2/auth?client_id=...&state=... | | |
| +---------------------------------------------------------------> | | |
| | | |
| | | | |
| | +--------+--------+ | |
| | | |
| | User | |
| | Authenticates | |
| | + Consent | |
| | | |
| | +--------+--------+ | |
| | | | |
| | | |
| (302) GET /callback?code=...&state=... | | |
| <---------------------------------------------------------------+ | | |
| | | |
| | | | |
| | | | |
| | | | |
+-----------------+ | | | |
| | | POST /core/connect/token | | |
| Resource Server | | Authorization: Basic client_id:client_secret | | |
| | | grant_type=authorization_code&code=... | | |
+--------+--------+ | +- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -> | | |
| | Response: { access_token = ... } | | |
| | | | |
| | | | | |
| | | | | |
| Use Access Token to | | | | |
| <- - - - - - - - - - - - - - -+ | | | | |
| access APIs | | | | |
| | | | | |
| | Display results | | | |
| | +-----------------------------> | | | |
| | | | | |
+ + + + |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment