JWTAuthenticator
public class JWTAuthenticator : Authenticator
A JSON Web Token (JWT) based authentication strategy is to be used to authenticate a guest user on Cisco Spark.
Since
1.2.0-
See
See Authenticator.authorizedSince
1.2.0Declaration
Swift
public var authorized: Bool { 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
jwt
the 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)