Partager via


IRenewableToken Interface

Definition

Simple interface to hide details of access token renewal. Consumers of this interface must defer retrieval of the token string until the point of SqlConnectionUsage

public interface IRenewableToken
type IRenewableToken = interface
Public Interface IRenewableToken

Properties

Resource

The URL of the resource associated with the token

Tenant

The tenant id associated with the token

TokenExpiry

Returns the expiration time of the most recently retrieved token If no token has been retrieved the value is undefined.

UserId

The user id associated with the token

Methods

GetAccessToken()

Returns an access token that can be used to query the associated Resource until the TokenExpiry time

Applies to