OAuth App must be created in Microsoft Azure AD. These settings typically found here https://docs.microsoft.com/en-us/graph/auth-register-app-v2.
[API reference]
Parameter |
Label |
Required |
Default value |
Options |
Description |
AuthUrl |
Authorization URL |
YES
|
|
Name |
Value |
For Single Tenant |
https://login.microsoftonline.com/{ENTER-TENANT-ID-HERE}/oauth2/v2.0/authorize |
For Multi Tenant |
https://login.microsoftonline.com/common/oauth2/v2.0/authorize |
|
|
TokenUrl |
Token URL |
YES
|
|
Name |
Value |
For Single Tenant |
https://login.microsoftonline.com/{ENTER-TENANT-ID-HERE}/oauth2/v2.0/token |
For Multi Tenant |
https://login.microsoftonline.com/common/oauth2/v2.0/token |
|
|
ClientId |
Client ID |
YES
|
|
|
|
Scope
|
Scope |
YES
|
offline_access~https://analysis.windows.net/powerbi/api/Dataset.Read.All
|
Name |
Value |
offline_access |
offline_access |
https://analysis.windows.net/powerbi/api/Dataset.Read.All |
https://analysis.windows.net/powerbi/api/Dataset.Read.All |
https://analysis.windows.net/powerbi/api/Workspace.Read.All |
https://analysis.windows.net/powerbi/api/Workspace.Read.All |
https://analysis.windows.net/powerbi/api/Workspace.ReadWrite.All |
https://analysis.windows.net/powerbi/api/Workspace.ReadWrite.All |
|
Permissions you want to use.
|
DatasetId |
Default Dataset (select after generating tokens) |
YES
|
|
|
|
ClientSecret |
Client Secret |
|
|
|
|
ReturnUrl |
Redirect URI (must match App Redirect URI) |
|
|
Name |
Value |
https://zappysys.com/oauth |
https://zappysys.com/oauth |
|
The ReturnUrl must match the URL on the Authentication page for your Application (in Azure Portal, Azure Active Directory > App registrations > Application)
|
WorkspaceId |
Default Workspace (Keep Empty for My Workspace - select after generating tokens) |
|
|
|
Leave value empty to use your Power BI default Workspace
|
RetryMode |
RetryMode |
|
RetryWhenStatusCodeMatch
|
Name |
Value |
None |
None |
RetryAny |
RetryAny |
RetryWhenStatusCodeMatch |
RetryWhenStatusCodeMatch |
|
|
RetryStatusCodeList |
RetryStatusCodeList |
|
429|503
|
|
|
RetryCountMax |
RetryCountMax |
|
20
|
|
|
RetryWaitTimeMs |
RetryWaitTimeMs |
|
1000
|
|
|
RetryMultiplyWaitTime |
RetryMultiplyWaitTime |
|
True
|
|
|
ExtraAttributesForAuthRequest
|
Login options |
|
|
Name |
Value |
None |
|
Force login prompt |
prompt=login |
Force permission select |
prompt=consent |
|
Choose this if you want to force login prompt or permission prompt.
|