Class RVBearerTokenDataSourceCredential
The class used to represent Bearer (aka 'Token') authentication.
Inheritance
System.Object
RVBearerTokenDataSourceCredential
Implements
Namespace: Reveal.Sdk.Data
Assembly: Infragistics.Reveal.SDK.Server.dll
Syntax
public class RVBearerTokenDataSourceCredential : Object, IRVDataSourceCredential
Constructors
RVBearerTokenDataSourceCredential(String, String)
Creates credentials with the specified attributes.
Declaration
public RVBearerTokenDataSourceCredential(string token, string userId)
Parameters
Type | Name | Description |
---|---|---|
System.String | token | Required. This is usually the access token resulting from an OAuth authentication process. The provided token is expected to be valid (not expired). If the caller's available token is expired or is about to expire, it is the caller's responsibility to perform a OAuth refresh request in order to get a fresh access token to use as a parameter for this constructor. |
System.String | userId | Required. A string that uniquely identifies the user associated with this credentials. |
Properties
Token
Declaration
public string Token { get; }
Property Value
Type | Description |
---|---|
System.String |
UserId
Declaration
public string UserId { get; }
Property Value
Type | Description |
---|---|
System.String |