microsoft / microsoft/ado-codespaces-auth
get-access-token command only accepts one scope at most?
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 10
- Forks
- 8
- Avg merge
- 8h 55m
- Merged PRs (30d)
- 2
Description
Based on this:
https://github.com/microsoft/ado-codespaces-auth/blob/bf1194fa709b56b9e572eef15d9d724b01c28777/src/auth-helper.ts#L25
it looks like only one scope can be passed (at most) when using get-access-token command. Some request contexts actually carry multiple scopes. I'm currently integrating codespaces auth with BuildXL, and I'm passing all the scopes the given request context carries, but I think only the first one will be honored?
Thanks,
Serge.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with src/auth-helper.ts at the referenced line and trace how get-access-token handles the scopes supplied by a request context. Reproduce the command with multiple scopes and verify that the completed change honors every supplied scope rather than only the first.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- authentication
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100