Class RVBearerTokenDataSourceCredential

The class used to represent Bearer (aka 'Token') authentication.

Inheritance
System.Object
RVBearerTokenDataSourceCredential
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Reveal.Sdk.Data
Assembly: Reveal.UI.Sdk.dll
Syntax
public class RVBearerTokenDataSourceCredential : 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

Implements

IRVDataSourceCredential