Power BI Header Auth icon

Power BI Header Auth

Work with the Power BI API using header authentication

Token → Generate Auth URL

AI-generated

Summary

Generate an OAuth2 authentication URL for Microsoft Entra ID with specified OAuth2 parameters to initiate user consent and authorization flows.

Inputs

  • Authentication Token (required) — Bearer token for authentication (without the "Bearer" prefix). Required but not used in URL construction; may be needed for other operations or API calls.
  • Authorization URL (required) — Base URL for Microsoft Entra ID authorization endpoint to which the query parameters will be appended.
  • Client ID (required) — Application client ID registered in Microsoft Entra ID to identify the app requesting authorization.
  • Response Type (required) — The type of response expected from the authorization endpoint (for example, 'code').
  • Redirect URI (required) — The URI where the authorization response will be sent after user authorization.
  • Response Mode (required) — Specifies how the authorization response should be returned (e.g., 'query').
  • Scope (required) — Space-separated list of scopes that the user is asked to consent to during authorization.
  • State — An optional value included in the request and returned in the token response to prevent cross-site request forgery attacks.

Output shape

a single item with a JSON object containing the generated authorization URL string under a relevant key (commonly 'authUrl' or similar).

The output includes the complete authorization URL constructed with given parameters, suitable for directing users to Microsoft Entra ID's consent and login page. No pagination or additional fields are involved.

Examples

Example 1: Generate URL for OAuth2 authorization authorization code flow

Provides clientId, redirectUri, scope as 'openid', responseType as 'code', responseMode as 'query', and optionally a state value; uses default or specified Microsoft authorization URL base to construct final URL.

Discussion