AuthenticationProvider

public enum AuthenticationProvider : Codable, Hashable, SelfIdentifiable

A value representing an authentication provider.

Types

Cases

Initializers

  • Declaration

    Swift

    public init(from decoder: Decoder) throws

Encodable Protocol

  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws

API

  • 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 the pattern matches the .oAuth2(_:) case in which case it relies on the OAuth2Family.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 the pattern, false otherwise.