JWTAuthenticator
public class JWTAuthenticator : Authenticator
A JSON Web Token (JWT) based authentication strategy is to be used to authenticate a guest user on Cisco Webex.
Since
1.2.0-
See
See Authenticator.authorizedSince
1.2.0Declaration
Swift
public var authorized: Bool { get } -
Returns the expiration of the access token
Since
2.3.0Declaration
Swift
public var expiration: Date? { get } -
Creates a new JWT authentication strategy
Since
1.2.0Declaration
Swift
public convenience init(storage: JWTAuthStorage = JWTAuthKeychainStorage()) -
Sets the JWT access token on the authorization strategy, overriting any existing access token.
Since
1.2.0Declaration
Swift
public func authorizedWith(jwt: String)Parameters
jwtthe new JSON Web Token to use
-
See
See Authenticator.deauthorize()Since
1.2.0Declaration
Swift
public func deauthorize() -
See
See Authenticator.accessToken(completionHandler:)Since
1.2.0Declaration
Swift
public func accessToken(completionHandler: @escaping (String?) -> Void) -
See
See Authenticator.refreshToken(completionHandler:)Since
1.4.0Declaration
Swift
public func refreshToken(completionHandler: @escaping (String?) -> Void)
View on GitHub
JWTAuthenticator Class Reference