C# Class Microsoft.PowerBI.Security.TokenManager

Manages reading / storing tokens for use in the Power BI service
Mostra file Open project: Microsoft/PowerBI-CSharp

Public Methods

Method 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

Method Description
TokenManager ( ) : System

Method Details

Clear() public method

Clears the token store for all users
public Clear ( ) : void
return void

ReadToken() public method

Reads the Power BI token for the specified identity
public ReadToken ( IIdentity identity ) : string
identity IIdentity
return string

SetTokenReader() public method

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
return void

SetTokenWriter() public method

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
return void

WriteToken() public method

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