From 924010d0c481aa4b204bc83f4848db3b4fae45c4 Mon Sep 17 00:00:00 2001 From: Fran McDade <18710366+frano-m@users.noreply.github.com> Date: Tue, 26 May 2026 16:10:40 +1000 Subject: [PATCH] feat: implement authorization code flow for anvil prod (anvil-cmg/prod) (#4851) Co-Authored-By: Claude Opus 4.7 (1M context) --- site-config/anvil-cmg/prod/authentication/constants.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/site-config/anvil-cmg/prod/authentication/constants.ts b/site-config/anvil-cmg/prod/authentication/constants.ts index 31ae57023..630f13d8d 100644 --- a/site-config/anvil-cmg/prod/authentication/constants.ts +++ b/site-config/anvil-cmg/prod/authentication/constants.ts @@ -8,13 +8,14 @@ import { GoogleProfile } from "@databiosphere/findable-ui/lib/google/types"; import { OAUTH_GOOGLE_SIGN_IN } from "../../../common/authentication"; const CLIENT_ID = - "1055427471534-r7j5sdnhv47cuq10nsdejrc0pajd1qqv.apps.googleusercontent.com"; + "1055427471534-8ee4mhig5j40n6n366j7uul26bbbhp2p.apps.googleusercontent.com"; export const GOOGLE_PROVIDER: OAuthProvider = { ...GOOGLE_SIGN_IN_PROVIDER, ...OAUTH_GOOGLE_SIGN_IN, + authorize: "https://service.explore.anvilproject.org/user/authorize", clientId: CLIENT_ID, - flow: OAUTH_FLOW.IMPLICIT, + flow: OAUTH_FLOW.AUTHORIZATION_CODE, }; export const TERRA_SERVICE = {