Represents an in-flight external user-agent session.
More...
#import <OIDExternalUserAgentSession.h>
Represents an in-flight external user-agent session.
◆ cancel()
Cancels the code flow session, invoking the request's callback with a cancelled error.
◆ cancelWithCompletion:()
- (void) cancelWithCompletion: |
|
(nullable void(^)(void)) |
completion |
|
Cancels the code flow session, invoking the request's callback with a cancelled error.
- Parameters
-
completion | The block to be called when the cancel operation ends |
◆ failExternalUserAgentFlowWithError:()
- (void) failExternalUserAgentFlowWithError: |
|
(NSError *) |
error |
|
OIDExternalUserAgent
or clients should call this method when the external user-agent flow failed with a non-OAuth error.
- Parameters
-
error | The error that is the reason for the failure of this external flow. |
◆ resumeExternalUserAgentFlowWithURL:()
- (BOOL) resumeExternalUserAgentFlowWithURL: |
|
(NSURL *) |
URL |
|
Clients should call this method with the result of the external user-agent code flow if it becomes available.
- Parameters
-
URL | The redirect URL invoked by the server. @discussion When the URL represented a valid response, implementations should clean up any left-over UI state from the request, for example by closing the SFSafariViewController or loopback HTTP listener if those were used. The completion block of the pending request should then be invoked. |
- Returns
- YES if the passed URL matches the expected redirect URL and was consumed, NO otherwise.
The documentation for this protocol was generated from the following file: