Authorization
public enum Authorization
Copyright
Copyright © 2020 by Paul Schmiedmayer
The Authorization
class represents three different authorization methods, none for no authentication, credentials for a basic authentication, and over the bearer token, or a custom token.
-
describes none authentication
Declaration
Swift
case none
-
describes an authentication over a basic authentication
Declaration
Swift
case credentials(type: PasswordType)
-
describes a token-based authentication
Declaration
Swift
case token(type: TokenType)