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
IdPHandler
is obtaining and sending to AM; available values:authorization_code
,access_token
, andid_token
Declaration
Swift
var tokenType: String { get }
-
Optional
UIViewController
that is currently presented in the applicationDeclaration
Swift
var presentingViewController: UIViewController? { get set }
-
Signs-in a user against selected Identity Provider with
IdPClient
information, and sends received credentials from providers to AMDeclaration
Swift
func signIn(idpClient: IdPClient, completion: @escaping SocialLoginCompletionCallback)
Parameters
idpClient
IdPClient
that contains Social Identity Provider’s OAuth2 / OIDC client information to perform social logincompletion
Completion callback to notify the result
-
Returns
UIView
of button that is rendered and generated from the provider’s SDKDeclaration
Swift
func getProviderButtonView() -> UIView?