Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Reduce Azure DevOps scope #9999

Merged
merged 2 commits into from
Jul 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/client/utils/AzureDevOpsClientManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ class AzureDevOpsClientManager {
const verifier = AzureDevOpsClientManager.generateVerifier()
const code = await AzureDevOpsClientManager.generateCodeChallenge(verifier)
const redirect = makeHref('/auth/ado2')
const scope = '499b84ac-1321-427f-aa17-267ca6975798/.default offline_access'
const scope =
'499b84ac-1321-427f-aa17-267ca6975798/vso.project 499b84ac-1321-427f-aa17-267ca6975798/vso.work_write offline_access'
const url = `https://login.microsoftonline.com/${tenantId}/oauth2/v2.0/authorize?client_id=${clientId}&response_type=code&redirect_uri=${redirect}&response_mode=query&scope=${scope}&state=${providerState}&code_challenge=${code}&code_challenge_method=S256`

// Open synchronously because of Safari
Expand Down
Loading