IdPHandler
public protocol IdPHandler
IdPHandler is a protocol for IdPHandler implementation and is responsible to perform sign-in / authorization process against given Social Identity Provider defined in AM
-
String value for type of credentials that
IdPHandleris obtaining and sending to AM; available values:authorization_code,access_token, andid_tokenDeclaration
Swift
var tokenType: String { get } -
Optional
UIViewControllerthat is currently presented in the applicationDeclaration
Swift
var presentingViewController: UIViewController? { get set } -
Signs-in a user against selected Identity Provider with
IdPClientinformation, and sends received credentials from providers to AMDeclaration
Swift
func signIn(idpClient: IdPClient, completion: @escaping SocialLoginCompletionCallback)Parameters
idpClientIdPClientthat contains Social Identity Provider’s OAuth2 / OIDC client information to perform social logincompletionCompletion callback to notify the result
-
Returns
UIViewof button that is rendered and generated from the provider’s SDKDeclaration
Swift
func getProviderButtonView() -> UIView?
View on GitHub