Config
Configuration object to setup an OAuth2 module
-
Applies the baseURL to the configuration.
Declaration
Swift
public let baseURL: String -
Applies the
callback URL
once request token issued.Declaration
Swift
public let redirectURL: String -
Applies the
authorization endpoint
to the request token.Declaration
Swift
public var authzEndpoint: String -
Applies the
access token endpoint
to the exchange code for access token.Declaration
Swift
public var accessTokenEndpoint: String -
Endpoint for request to invalidate both accessToken and refreshToken.
Declaration
Swift
public let revokeTokenEndpoint: String? -
Endpoint for request a refreshToken.
Declaration
Swift
public let refreshTokenEndpoint: String? -
Endpoint for OpenID Connect to get user information.
Declaration
Swift
public let userInfoEndpoint: String? -
Boolean to indicate whether OpenID Connect on authorization code grant flow is used.
Declaration
Swift
public var isOpenIDConnect: Bool -
Applies the various scopes of the authorization.
Declaration
Swift
public var scopes: [String] -
Applies the
client id
obtained with the client registration process.Declaration
Swift
public let clientId: String -
Applies the
client secret
obtained with the client registration process.Declaration
Swift
public let clientSecret: String? -
Account id is used with AccountManager to store tokens. AccountId is defined by the end-user and can be any String. If AccountManager is not used, this field is optional.
Declaration
Swift
public var accountId: String? -
Boolean to indicate to either used a webview (if true) or an external browser (by default, false) for authorization code grant flow.
Declaration
Swift
public var isWebView: Bool = false -
init(base:authzEndpoint:redirectURL:accessTokenEndpoint:clientId:refreshTokenEndpoint:revokeTokenEndpoint:isOpenIDConnect:userInfoEndpoint:scopes:clientSecret:accountId:isWebView:)Undocumented
View on GitHub
Config Class Reference