-
Notifications
You must be signed in to change notification settings - Fork 333
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
feat: release AzureDevOps integration #9531
Conversation
Don't hide it behind a feature flag anymore.
Modify the oauth flow slightly for a web app with a client secret. This will increase the lifetime of the authorization token and thus improve the user experience. An additional scope `offline_access` is necessary so we still get a refresh token.
@@ -40,8 +40,8 @@ class AzureDevOpsClientManager { | |||
const providerState = Math.random().toString(36).substring(5) | |||
const verifier = AzureDevOpsClientManager.generateVerifier() | |||
const code = await AzureDevOpsClientManager.generateCodeChallenge(verifier) | |||
const redirect = makeHref('/auth/ado') | |||
const scope = '499b84ac-1321-427f-aa17-267ca6975798/.default' | |||
const redirect = makeHref('/auth/ado2') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I switched our app to be a "web" app rather than "spa" so our access token gets a longer life-span. Because the redirects are not compatible, I just appended the 2 for now so it works straight after deploying.
const redirect = makeHref('/auth/ado') | ||
const scope = '499b84ac-1321-427f-aa17-267ca6975798/.default' | ||
const redirect = makeHref('/auth/ado2') | ||
const scope = '499b84ac-1321-427f-aa17-267ca6975798/.default offline_access' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additional scope to still get a refresh token.
Fixes #9408
Don't hide it behind a feature flag anymore.
Testing scenarios
Final checklist