Class ISN_ASAuthorizationController
A controller that manages authorization requests created by a provider.
Inheritance
Namespace: SA.iOS.AuthenticationServices
Assembly: cs.temp.dll.dll
Syntax
public class ISN_ASAuthorizationController : ISN_NativeObject
Constructors
ISN_ASAuthorizationController(IEnumerable<ISN_ASAuthorizationRequest>)
Creates a controller from a collection of authorization requests.
Declaration
public ISN_ASAuthorizationController(IEnumerable<ISN_ASAuthorizationRequest> authorizationRequests)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<ISN_ASAuthorizationRequest> | authorizationRequests | One or more authorization requests that this controller can perform. |
Methods
PerformRequests()
Starts the authorization flows named during controller initialization.
When authorization succeeds, the system tells the controller’s delegate by calling the DidCompleteWithAuthorization(ISN_ASAuthorizationAppleIDCredential) method with an authorization instance. If authorization fails, the system calls the DidCompleteWithError(SA_Error) method instead.
Some authorization flows require a presentation context to ask the user for information or consent.
Declaration
public void PerformRequests()
SetDelegate(ISN_IASAuthorizationControllerDelegate)
Set's a delegate that the authorization controller informs about the success or failure of an authorization attempt.
Declaration
public void SetDelegate(ISN_IASAuthorizationControllerDelegate delegate)
Parameters
Type | Name | Description |
---|---|---|
ISN_IASAuthorizationControllerDelegate | delegate | A delegate that the authorization controller informs about the success or failure of an authorization attempt. |