Click or drag to resize

OAuthAuthenticator Class

An [OAuth](https://oauth.net/2/) based authentication strategy is to be used to authenticate a user on Cisco Spark.
Inheritance Hierarchy

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

The OAuthAuthenticator type exposes the following members.

Constructors
  NameDescription
Public methodOAuthAuthenticator
Initializes a new instance of the OAuthAuthenticator class.
Top
Properties
  NameDescription
Public propertyAuthorizationUrl
Get authorization url
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 methodAuthorize
Authenticate process with authentication code, and browser is trigged by SDK users.
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 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