Forum Discussion
Bearer Token support for Fabric REST API
- 9 months ago
Actually we are trying to acess a data source API and the only authorization provided in bearer token, we did it now using AKV(bearer token stored here) and used this AKV secret in copy job source-> additional headers.
This helped us to use bearer token from customer API.
Hi
Fabric REST APIs don’t use basic auth. They only accept bearer tokens, and those tokens come from Microsoft Entra ID.
So even though Fabric supports Service Principals and Entra ID, the REST API itself always expects:
In practice, you authenticate with Entra ID (usually using a service principal), Entra issues an access token, and that token is passed to Fabric as a bearer token.
You just need to:
Enable Service principals can use Fabric APIs in tenant settings
Give the SPN access to the workspace or items
Use OAuth 2.0 (client credentials flow) to get the token
Here you can find a quick start using Fabric APIs: https://learn.microsoft.com/en-us/rest/api/fabric/articles/get-started/fabric-api-quickstart
Regards,
Mehrdad Abdollahi
- ati_puri9 months ago
Resolver III
Actually we are trying to acess a data source API and the only authorization provided in bearer token, we did it now using AKV(bearer token stored here) and used this AKV secret in copy job source-> additional headers.
This helped us to use bearer token from customer API.