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, and id_token

    Declaration

    Swift

    var tokenType: String { get }
  • Optional UIViewController that is currently presented in the application

    Declaration

    Swift

    var presentingViewController: UIViewController? { get set }
  • Signs-in a user against selected Identity Provider with IdPClient information, and sends received credentials from providers to AM

    Declaration

    Swift

    func signIn(idpClient: IdPClient, completion: @escaping SocialLoginCompletionCallback)

    Parameters

    idpClient

    IdPClient that contains Social Identity Provider’s OAuth2 / OIDC client information to perform social login

    completion

    Completion callback to notify the result

  • Returns UIView of button that is rendered and generated from the provider’s SDK

    Declaration

    Swift

    func getProviderButtonView() -> UIView?