|
AppAuth
|
iOS specific convenience methods for OIDAuthState.
More...
#import <OIDAuthState+IOS.h>
Class Methods | |
| (id< OIDExternalUserAgentSession >) | + authStateByPresentingAuthorizationRequest:presentingViewController:callback: |
Convenience method to create a OIDAuthState by presenting an authorization request and performing the authorization code exchange in the case of code flow requests. For the hybrid flow, the caller should validate the id_token and c_hash, then perform the token request (performTokenRequest:callback: (OIDAuthorizationService)) and update the OIDAuthState with the results (updateWithTokenResponse:error: (OIDAuthState)). More... | |
iOS specific convenience methods for OIDAuthState.
| + (id<OIDExternalUserAgentSession>) authStateByPresentingAuthorizationRequest: | (OIDAuthorizationRequest *) | authorizationRequest | |
| presentingViewController: | (UIViewController *) | presentingViewController | |
| callback: | (OIDAuthStateAuthorizationCallback) | callback | |
Convenience method to create a OIDAuthState by presenting an authorization request and performing the authorization code exchange in the case of code flow requests. For the hybrid flow, the caller should validate the id_token and c_hash, then perform the token request (performTokenRequest:callback: (OIDAuthorizationService)) and update the OIDAuthState with the results (updateWithTokenResponse:error: (OIDAuthState)).
| authorizationRequest | The authorization request to present. |
| presentingViewController | The view controller from which to present the SFSafariViewController. On iOS 13, the window of this UIViewController is used as the ASPresentationAnchor. |
| callback | The method called when the request has completed or failed. |
OIDExternalUserAgentSession instance which will terminate when it receives a cancel (OIDExternalUserAgentSession-p) message, or after processing a resumeExternalUserAgentFlowWithURL: (OIDExternalUserAgentSession-p) message. Extends class OIDAuthState.
1.8.16