An authorization request that your provider extension handles.
SDKs
- iOS 13.0+
- macOS 10.15+
Framework
- Authentication
Services
Declaration
class ASAuthorizationProviderExtensionAuthorizationRequest : NSObject
An authorization request that your provider extension handles.
SDKs
Framework
class ASAuthorizationProviderExtensionAuthorizationRequest : NSObject
var url: URL
The complete URL of the request, including all components.
var http Headers: [String : String]
The HTTP headers of the request.
var http Body: Data
The HTTP body of the request.
var realm: String
The realm to which the request applies.
var requested Operation: ASAuthorization Provider Authorization Operation
The operation for the extension to execute.
struct ASAuthorization Provider Authorization Operation
A type that represents an authorization operation.
var authorization Options: [Any Hashable : Any]
A collection of options associated with the request.
var caller Bundle Identifier: String
The bundle ID of the app making the request.
var extension Data: [Any Hashable : Any]
Extension data from the Mobile Device Management (MDM) configuration.
func present Authorization View Controller(completion: (Bool, Error?) -> Void)
Asks the authorization service to show the extension’s view controller to the user.
func complete()
Indicates the requested authorization completed with no output.
func complete(http Authorization Headers: [String : String])
Indicates the requested authorization succeeded with tokens in the HTTP headers.
func complete(http Response: HTTPURLResponse, http Body: Data?)
Indicates the requested authorization succeeded with an HTTP response.
func complete(error: Error)
Indicates the requested authorization failed.
func do Not Handle()
Indicates the request wasn’t handled.
func cancel()
Cancels the request, for example, because the user taps a cancel button.
func begin Authorization(with: ASAuthorization Provider Extension Authorization Request)
Tells your request handler to authorize the given request.
Required.
func cancel Authorization(with: ASAuthorization Provider Extension Authorization Request)
Tells your request handler to cancel the authorization of the given request.