UNPKG

n8n-nodes-powerbi

Version:
73 lines 2.6 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PowerBiApiOAuth2Api = void 0; class PowerBiApiOAuth2Api { constructor() { this.name = 'powerBiApiOAuth2Api'; this.displayName = 'Power BI OAuth2 API'; this.documentationUrl = 'https://docs.microsoft.com/en-us/power-bi/developer/embedded/get-azuread-access-token'; this.extends = ['oAuth2Api']; this.icon = 'file:powerbi.svg'; this.properties = [ { displayName: 'Grant Type', name: 'grantType', type: 'hidden', default: 'authorizationCode', }, { displayName: 'Authorization URL', name: 'authUrl', type: 'hidden', default: 'https://login.microsoftonline.com/common/oauth2/v2.0/authorize', }, { displayName: 'Access Token URL', name: 'accessTokenUrl', type: 'hidden', default: 'https://login.microsoftonline.com/common/oauth2/v2.0/token', }, { displayName: 'Scope', name: 'scope', type: 'hidden', default: 'https://analysis.windows.net/powerbi/api/.default offline_access', }, { displayName: 'Auth URI Query Parameters', name: 'authQueryParameters', type: 'hidden', default: 'response_type=code&prompt=consent', }, { displayName: 'Authentication', name: 'authentication', type: 'hidden', default: 'body', }, { displayName: 'Token Key', name: 'tokenKey', type: 'hidden', default: 'access_token', }, { displayName: 'Refresh Token Key', name: 'refreshTokenKey', type: 'hidden', default: 'refresh_token', }, ]; this.test = { request: { baseURL: 'https://api.powerbi.com/v1.0/myorg', url: '/groups', headers: { Accept: 'application/json', }, }, }; } } exports.PowerBiApiOAuth2Api = PowerBiApiOAuth2Api; //# sourceMappingURL=PowerBiApiOAuth2Api.credentials.js.map