Forum Discussion
Bearer Token wont authenticate
have created function to pass a bearer token to authenicate so i can use a get request to get app and report details from power bi. have got the bearer token loading but then when used in a query keep getting error it cant be authenticated with the credntials provided. query images added any help is greatly appreciated
6 Replies
- lbendlin
Super User
Recommendation is to use the existing custom connector that speaks AAD Auth.
- SachinNandanwar
Impactful Individual
Did you test it through POSTMAN ?
- lbendlin
Super User
Postman doesn't speak AAD Auth as far as I know. Having it work in Postman is nice, but not sufficient.
You could equally try the call in the API sandbox - where the authentication is a separate step (and where you could "borrow" the token)
- SachinNandanwar
Impactful Individual
It is possible to get access token for AD on Postman..You would have register a service principal on Entra and or Azure AD and then use the client secret and tenant id to fetch the access token.