AuthenticationProvider
public enum AuthenticationProvider : Codable, Hashable, SelfIdentifiable
A value representing an authentication provider.
-
A value representing an authentication provider mode.
It is used to provide specific password handling mode (‘password’ or ‘otp’) of email or phone authentication methods
See moreDeclaration
Swift
public enum ProviderMode : Codable, CaseIterable, Hashable, SelfIdentifiable
-
A value that identifies a provider of the internal family.
It is used for the associated value of the
See more.internal(_:)
case.Declaration
Swift
public enum InternalFamily : CaseIterable, Hashable, SelfIdentifiable
-
A value that identifies a provider of the OAuth2 family.
It is used for the associated value of the
See more.oAuth2(_:)
case.Declaration
Swift
public enum OAuth2Family : Hashable, SelfIdentifiable
-
The provider for
AuthenticationMethodGuest
.Declaration
Swift
case guest
-
A provider for
AuthenticationMethodInternal
.The associated value specifies the precise provider in the family.
Declaration
Swift
case `internal`(InternalFamily)
-
The provider for
AuthenticationMethodOrangeMobileNetwork
.Declaration
Swift
case orangeMobileNetwork
-
A provider for
AuthenticationMethodOAuth2
.The associated value specifies the precise provider in the family.
Declaration
Swift
case oAuth2(OAuth2Family)
-
A provider for
AuthenticationMethodCustom
.The associated value specifies the precise provider.
Declaration
Swift
case custom(identifier: String)
-
Declaration
Swift
public init(from decoder: Decoder) throws
-
Declaration
Swift
public func encode(to encoder: Encoder) throws
-
The pretty name of this provider.
Declaration
Swift
public var prettyName: String { get }
-
Indicates whether this value matches a provider pattern.
This operator behaves like the equality operator (
==
), except when thepattern
matches the.oAuth2(_:)
case in which case it relies on theOAuth2Family.matches(with:)
method.Declaration
Swift
public func matches(with pattern: AuthenticationProvider) -> Bool
Parameters
pattern
The pattern to match this value with.
Return Value
true
when this value matches thepattern
,false
otherwise.