-
Notifications
You must be signed in to change notification settings - Fork 278
Call Graph
Pascal Pfiffner edited this page Jun 14, 2016
·
2 revisions
The call graph for authorize()
, as of version 2.2.7, is as follows:
authorize()
tryToObtainAccessTokenIfNeeded()
hasUnexpiredAccessToken()
YES: didAuthorize() ✅
NO ACCESS TOKEN:
doRefreshToken()
tokenRequestForTokenRefresh()
performRequest()
parseRefreshTokenResponseData()
parseJSON()
parseRefreshTokenResponse()
assureNoErrorInResponse()
assureCorrectBearerType()
assureRefreshTokenParamsAreValid()
normalizeRefreshTokenResponseKeys()
clientConfig.updateFromResponse()
DID-REFRESH: didAuthorize() ✅
registerClientIfNeeded()
NEEDED: onBeforeDynamicClientRegistration()
OAuth2DynReg.registerClient()
FAIL: didFail() 🚫
doAuthorize()
EMBEDDED:
authorizeEmbeddedWith()
authorizeSafariEmbeddedFromViewController()
authorizeURL()
presentSafariViewFor()
CANCEL: didFail() 🚫
BROWSER:
openAuthorizeURLInBrowser()
authorizeURL()
[open in Safari]
CALLBACK IMPLICIT GRANT:
handleRedirectURL()
parseAccessTokenResponse()
assureNoErrorInResponse()
assureCorrectBearerType()
assureAccessTokenParamsAreValid()
normalizeAccessTokenResponseKeys()
clientConfig.updateFromResponse()
SUCCESS: didAuthorize() ✅
FAILED: didFail() 🚫
CALLBACK CODE GRANT:
handleRedirectURL()
validateRedirectURL()
exchangeCodeForToken()
tokenRequestWithCode()
performRequest()
parseAccessTokenResponseData()
parseJSON()
parseAccessTokenResponse()
assureNoErrorInResponse()
assureCorrectBearerType()
assureAccessTokenParamsAreValid()
normalizeAccessTokenResponseKeys()
clientConfig.updateFromResponse()
SUCCESS: didAuthorize() ✅
FAILED: didFail() 🚫
FAILED: didFail() 🚫
ERROR: didFail() 🚫
ERROR: didFail() 🚫
INVALID: didFail() 🚫