C# 클래스 Microsoft.PowerBI.Security.PowerBIToken

The Power BI app token used to authenticate with Power BI Embedded services
파일 보기 프로젝트 열기: Microsoft/PowerBI-CSharp 1 사용 예제들

공개 메소드들

메소드 설명
CreateReportEmbedToken ( string workspaceCollectionName, string workspaceId, string reportId, System.DateTime expiration, string username = null, IEnumerable roles = null ) : PowerBIToken

Creates a embed token with default expiration used to embed Power BI components into your own applications

CreateReportEmbedToken ( string workspaceCollectionName, string workspaceId, string reportId, System.TimeSpan slidingExpiration, string username = null, IEnumerable roles = null ) : PowerBIToken

Creates a embed token with default expiration used to embed Power BI components into your own applications

CreateReportEmbedToken ( string workspaceCollectionName, string workspaceId, string reportId, string username = null, IEnumerable roles = null ) : PowerBIToken

Creates a embed token with default expiration used to embed Power BI components into your own applications

Generate ( string accessKey = null ) : string

Generates an app token with the specified claims and signs it the the configured signing key.

PowerBIToken ( ) : System

Represents an access token used to authenticate and authorize against Power BI Platform services

ToString ( ) : string

Returns a string that represents the current object.

ToString ( string accessKey ) : string

Returns a JWT token string that represents the current object

비공개 메소드들

메소드 설명
InitDefaultClaims ( ) : void
ValidateToken ( ) : void

메소드 상세

CreateReportEmbedToken() 공개 정적인 메소드

Creates a embed token with default expiration used to embed Power BI components into your own applications
public static CreateReportEmbedToken ( string workspaceCollectionName, string workspaceId, string reportId, System.DateTime expiration, string username = null, IEnumerable roles = null ) : PowerBIToken
workspaceCollectionName string The workspace collection name
workspaceId string The workspace id
reportId string The report id
expiration System.DateTime The token expiration date/time
username string The RLS username
roles IEnumerable The RLS roles
리턴 PowerBIToken

CreateReportEmbedToken() 공개 정적인 메소드

Creates a embed token with default expiration used to embed Power BI components into your own applications
public static CreateReportEmbedToken ( string workspaceCollectionName, string workspaceId, string reportId, System.TimeSpan slidingExpiration, string username = null, IEnumerable roles = null ) : PowerBIToken
workspaceCollectionName string The workspace collection name
workspaceId string The workspace id
reportId string The report id
slidingExpiration System.TimeSpan The timespan to append to the current date/time
username string The RLS username
roles IEnumerable The RLS roles
리턴 PowerBIToken

CreateReportEmbedToken() 공개 정적인 메소드

Creates a embed token with default expiration used to embed Power BI components into your own applications
public static CreateReportEmbedToken ( string workspaceCollectionName, string workspaceId, string reportId, string username = null, IEnumerable roles = null ) : PowerBIToken
workspaceCollectionName string The workspace collection name
workspaceId string The workspace id
reportId string The report id
username string The RLS username
roles IEnumerable The RLS roles
리턴 PowerBIToken

Generate() 공개 메소드

Generates an app token with the specified claims and signs it the the configured signing key.
public Generate ( string accessKey = null ) : string
accessKey string The access key used to sign the app token
리턴 string

PowerBIToken() 공개 메소드

Represents an access token used to authenticate and authorize against Power BI Platform services
public PowerBIToken ( ) : System
리턴 System

ToString() 공개 메소드

Returns a string that represents the current object.
public ToString ( ) : string
리턴 string

ToString() 공개 메소드

Returns a JWT token string that represents the current object
public ToString ( string accessKey ) : string
accessKey string The access key used to sign the app token
리턴 string