Click or drag to resize

JWTAuthenticator Class

A [JSON Web Token](https://jwt.io/introduction) (JWT) based authentication strategy is to be used to authenticate a guest user on Cisco Spark.
Inheritance Hierarchy
SystemObject
  SparkSDKJWTAuthenticator

Namespace:  SparkSDK
Assembly:  SparkSDK (in SparkSDK.dll) Version: 0.1.0.0 (0.1.0.0)
Syntax
C#
public sealed class JWTAuthenticator : IAuthenticator

The JWTAuthenticator type exposes the following members.

Constructors
  NameDescription
Public methodJWTAuthenticator
Initializes a new instance of the JWTAuthenticator class.
Top
Methods
  NameDescription
Public methodAccessToken
Returns an access token of this authenticator. This may involve long-running operations such as service calls, but may also return immediately. The application should not make assumptions about how quickly this completes. If the access token could not be retrieved then the completion handler will be called with null.
Public methodAuthorized
Gets a value indicating whether this IAuthenticator is authorized. This may not mean the user has a valid access token yet, but the authentication strategy should be able to obtain one without further user interaction.
Public methodAuthorizeWith
JWT Authenticate
Public methodDeauthorize
Deauthorizes the current user and clears any persistent state with regards to the current user.
Public methodRefreshToken
Returns an new access token of this authenticator. This may involve long-running operations such as service calls. If the access token could not be retrieved then the completion handler will be called with null.
Top
Remarks
Since: 0.1.0
See Also