Skip to content

Instantly share code, notes, and snippets.

@Paul-PSDigital
Created December 13, 2017 11:12
Show Gist options
  • Save Paul-PSDigital/4a431f42155395bc2b235b03b4d6fcaa to your computer and use it in GitHub Desktop.
Save Paul-PSDigital/4a431f42155395bc2b235b03b4d6fcaa to your computer and use it in GitHub Desktop.
PowerBI RLS authentication structs in Go
// 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