Created
December 13, 2017 11:12
-
-
Save Paul-PSDigital/4a431f42155395bc2b235b03b4d6fcaa to your computer and use it in GitHub Desktop.
PowerBI RLS authentication structs in Go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// PowerBITokenRequest the request to specify when generating a powerbi token | |
type PowerBITokenRequest struct { | |
AccessLevel string `json:"accessLevel"` | |
Identities []PowerBIIdentity | |
} | |
// PowerBIIdentity the identity to assume when authenticating with powerbi | |
type PowerBIIdentity struct { | |
Username int64 `json:"username"` | |
Roles []string `json:"roles"` | |
Datasets []string `json:"datasets"` | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment