Azure / Azure/azure-rest-api-specs
Problem generating bearer token using APIs
- Dominant language
- TypeSpec
- Stars
- 3.1k
- Forks
- 5.9k
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 444
Description

how to generate this bearer token (highlighted) programmatically using APIs?
authority_url = 'https://login.microsoftonline.com/' + TENANT_ID
context = adal.AuthenticationContext(authority_url)
Using the ADAL module in python it returns an access token but it does not work, while the one generated in the image on Microsoft docs pages works perfectly fine.
Can someone help me understand, how it works??
Contributor guide
Research direction
No repository file or test is named. Start by reproducing the ADAL AuthenticationContext flow with the authority_url shown, then compare its access token with the bearer token in the linked Microsoft documentation image and identify the target API or resource each token addresses. Done means explaining the mismatch and confirming a token that works against the same API.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, authentication, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100