Post

Replies

Boosts

Views

Activity

Reply to Extensible SSO and sample code
Can I use this code for Redirect Extension?var authController : ASAuthorizationController? let authProvider = ASAuthorizationSingleSignOnProvider(identityProvider: URL(string: "https://example.com")!) @IBAction func logIn(_ sender: Any) { if self.authProvider.canPerformAuthorization { let request = self.authProvider.createRequest() request.requestedOperation = ASAuthorization.OpenIDOperation.operationLogin self.authController = ASAuthorizationController(authorizationRequests: [request]) self.authController?.delegate = self self.authController?.presentationContextProvider = self self.authController?.performRequests() } }
Jan ’20