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
providerIdentifierThe identifier of the custom provider on the back-end.
credentialsThe credentials of the user for the provider.
fileThe file from which the method is called. This is used for debugging purposes.
lineThe 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 }