|
AppAuth
|
Performs various OAuth and OpenID Connect related calls via the user agent or NSURLSession.
More...
#import <OIDAuthorizationService.h>
Class Methods | |
| (void) | + discoverServiceConfigurationForIssuer:completion: |
| Convenience method for creating an authorization service configuration from an OpenID Connect compliant issuer URL. More... | |
| (void) | + discoverServiceConfigurationForDiscoveryURL:completion: |
| Convenience method for creating an authorization service configuration from an OpenID Connect compliant identity provider's discovery document. More... | |
| (id< OIDExternalUserAgentSession >) | + presentAuthorizationRequest:externalUserAgent:callback: |
| Perform an authorization flow using a generic flow shim. More... | |
| (id< OIDExternalUserAgentSession >) | + presentEndSessionRequest:externalUserAgent:callback: |
| Perform a logout request. More... | |
| (void) | + performTokenRequest:callback: |
| Performs a token request. More... | |
| (void) | + performTokenRequest:originalAuthorizationResponse:callback: |
| Performs a token request. More... | |
| (void) | + performRegistrationRequest:completion: |
| Performs a registration request. More... | |
| (id< OIDExternalUserAgentSession >) | + presentAuthorizationRequest:presentingViewController:callback: |
Perform an authorization flow using SFSafariViewController. More... | |
| (id< OIDExternalUserAgentSession >) | + presentAuthorizationRequest:callback: |
| Perform an authorization flow using the default browser. More... | |
Properties | |
| OIDServiceConfiguration * | configuration |
| The service's configuration. More... | |
Performs various OAuth and OpenID Connect related calls via the user agent or NSURLSession.
| + (void) discoverServiceConfigurationForDiscoveryURL: | (NSURL *) | discoveryURL | |
| completion: | (OIDDiscoveryCallback) | completion | |
Convenience method for creating an authorization service configuration from an OpenID Connect compliant identity provider's discovery document.
| discoveryURL | The URL of the service provider's OpenID Connect discovery document. |
| completion | A block which will be invoked when the authorization service configuration has been created, or when an error has occurred. |
| + (void) discoverServiceConfigurationForIssuer: | (NSURL *) | issuerURL | |
| completion: | (OIDDiscoveryCallback) | completion | |
Convenience method for creating an authorization service configuration from an OpenID Connect compliant issuer URL.
| issuerURL | The service provider's OpenID Connect issuer. |
| completion | A block which will be invoked when the authorization service configuration has been created, or when an error has occurred. |
| + (void) performRegistrationRequest: | (OIDRegistrationRequest *) | request | |
| completion: | (OIDRegistrationCompletion) | completion | |
Performs a registration request.
| request | The registration request. |
| completion | The method called when the request has completed or failed. |
| + (void) performTokenRequest: | (OIDTokenRequest *) | request | |
| callback: | (OIDTokenCallback) | callback | |
Performs a token request.
| request | The token request. |
| callback | The method called when the request has completed or failed. |
| + (void) performTokenRequest: | (OIDTokenRequest *) | request | |
| originalAuthorizationResponse: | (OIDAuthorizationResponse *_Nullable) | authorizationResponse | |
| callback: | (OIDTokenCallback) | callback | |
Performs a token request.
| request | The token request. |
| authorizationResponse | The original authorization response related to this token request. |
| callback | The method called when the request has completed or failed. |
| + (id<OIDExternalUserAgentSession>) presentAuthorizationRequest: | (OIDAuthorizationRequest *) | request | |
| callback: | (OIDAuthorizationCallback) | callback | |
Perform an authorization flow using the default browser.
| request | The authorization request. |
| 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. Provided by category OIDAuthorizationService(Mac).
| + (id<OIDExternalUserAgentSession>) presentAuthorizationRequest: | (OIDAuthorizationRequest *) | request | |
| externalUserAgent: | (id< OIDExternalUserAgent >) | externalUserAgent | |
| callback: | (OIDAuthorizationCallback) | callback | |
Perform an authorization flow using a generic flow shim.
| request | The authorization request. |
| externalUserAgent | Generic external user-agent that can present an authorization request. |
| 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. | + (id<OIDExternalUserAgentSession>) presentAuthorizationRequest: | (OIDAuthorizationRequest *) | request | |
| presentingViewController: | (UIViewController *) | presentingViewController | |
| callback: | (OIDAuthorizationCallback) | callback | |
Perform an authorization flow using SFSafariViewController.
| request | The authorization request. |
| presentingViewController | The view controller from which to present the SFSafariViewController. |
| 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. Provided by category OIDAuthorizationService(IOS).
| + (id<OIDExternalUserAgentSession>) presentEndSessionRequest: | (OIDEndSessionRequest *) | request | |
| externalUserAgent: | (id< OIDExternalUserAgent >) | externalUserAgent | |
| callback: | (OIDEndSessionCallback) | callback | |
Perform a logout request.
| request | The end-session logout request. |
| externalUserAgent | Generic external user-agent that can present user-agent requests. |
| 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.
|
readnonatomicassign |
The service's configuration.
1.8.16