IRenewableToken Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |