AuthenticationMethodCustom
public final class AuthenticationMethodCustom : AuthenticationSingleStepMethod
A method that delegates authentication of the current user to a third-party identity provider, ad hoc for the application.
-
Creates a new instance.
Declaration
Swift
public init(providerIdentifier: String, credentials: String, file: StaticString = #fileID, line: UInt = #line)
Parameters
providerIdentifier
The identifier of the custom provider on the back-end.
credentials
The credentials of the user for the provider.
file
The file from which the method is called. This is used for debugging purposes.
line
The line from which the method is called. This is used for debugging purposes.
-
Declaration
Swift
public var provider: AuthenticationProvider { get }
-
Declaration
Swift
public func initializeAuthentication(_: WebcomMarkers.Restricted, for service: AuthenticationService) -> WebcomResult<Void>
-
Declaration
Swift
public func authenticate(_: WebcomMarkers.Restricted, then completionCallback: @escaping WebcomResult<AuthenticationDetails>.Callback)
-
Declaration
Swift
public var debugDescription: String { get }