Skip to content

feat: implement authorization code flow for anvil prod (anvil-cmg/prod) (#4851)#4852

Merged
NoopDog merged 1 commit into
mainfrom
fran/4851-anvil-prod-auth-code-flow
May 26, 2026
Merged

feat: implement authorization code flow for anvil prod (anvil-cmg/prod) (#4851)#4852
NoopDog merged 1 commit into
mainfrom
fran/4851-anvil-prod-auth-code-flow

Conversation

@frano-m
Copy link
Copy Markdown
Contributor

@frano-m frano-m commented May 26, 2026

Summary

  • Switches AnVIL prod (anvil-cmg/prod) Google OAuth from implicit to authorization code flow.
  • New client ID provisioned for the auth-code flow on the same Google Cloud project.
  • Adds the `authorize` endpoint URL targeting prod Azul (`https://service.explore.anvilproject.org/user/authorize\`).
  • Mirrors the anvil-cmg/dev migration; `authentication/authentication.ts` and `config.ts` are unchanged because the const-export pattern is preserved.

Closes #4851

Test plan

  • Sign in to prod AnVIL Data Browser and complete the Terra OAuth round-trip
  • Sign out cleanly
  • Refresh-token flow exercised end-to-end via Azul (verifies the auth-code intent — critical-path for the mirror-MA effort in DataBiosphere/azul-private#359)

🤖 Generated with Claude Code

…d) (#4851)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the AnVIL CMG production site configuration to use Google OAuth’s authorization code flow (instead of implicit) to support Azul refresh-token behavior in prod.

Changes:

  • Switch anvil-cmg/prod Google OAuth flow from IMPLICIT to AUTHORIZATION_CODE.
  • Update the Google OAuth client ID to the newly provisioned auth-code client.
  • Add the prod Azul /user/authorize endpoint as the OAuth authorize URL.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@frano-m frano-m marked this pull request as ready for review May 26, 2026 06:19
@NoopDog NoopDog merged commit 690bd78 into main May 26, 2026
4 checks passed
@NoopDog NoopDog deleted the fran/4851-anvil-prod-auth-code-flow branch May 26, 2026 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement authorization code flow for AnVIL prod (anvil-cmg/prod)

3 participants