C# Class Microsoft.PowerBI.Security.TokenManager

Manages reading / storing tokens for use in the Power BI service
Afficher le fichier Open project: Microsoft/PowerBI-CSharp

Méthodes publiques

Méthode Description
Clear ( ) : void

Clears the token store for all users

ReadToken ( IIdentity identity ) : string

Reads the Power BI token for the specified identity

SetTokenReader ( string>.Func readTokenFactory ) : void

Sets the reader strategy for reading Power BI tokens

SetTokenWriter ( string>.Action writeTokenAction ) : void

Sets the writer strategy for storing Power BI tokens

WriteToken ( IIdentity identity, string accessToken ) : void

Stores a Power BI token and associates it with the specified identity

Private Methods

Méthode Description
TokenManager ( ) : System

Method Details

Clear() public méthode

Clears the token store for all users
public Clear ( ) : void
Résultat void

ReadToken() public méthode

Reads the Power BI token for the specified identity
public ReadToken ( IIdentity identity ) : string
identity IIdentity
Résultat string

SetTokenReader() public méthode

Sets the reader strategy for reading Power BI tokens
public SetTokenReader ( string>.Func readTokenFactory ) : void
readTokenFactory string>.Func The strategy expression used to read tokens
Résultat void

SetTokenWriter() public méthode

Sets the writer strategy for storing Power BI tokens
public SetTokenWriter ( string>.Action writeTokenAction ) : void
writeTokenAction string>.Action The strategy expression used to store tokens
Résultat void

WriteToken() public méthode

Stores a Power BI token and associates it with the specified identity
public WriteToken ( IIdentity identity, string accessToken ) : void
identity IIdentity
accessToken string
Résultat void