Skip to content

Commit 969293b

Browse files
madfam-ioaldoruizlunaclaude
authored
seed: add fortuna-web public OIDC client (audience=fortuna) (#465)
Adds the fortuna-web PUBLIC OIDC/PKCE client so the fortuna web app can 'Sign in with Janua'. audience=fortuna matches what fortuna-api enforces on the Janua JWT (services/api/app/core/auth.py + config.py janua_audience default 'fortuna'), so OIDC-minted tokens carry aud=fortuna and are accepted — unlike the session-API tokens (aud=janua.dev) the web currently obtains. redirect_uri is https://fortuna.tube/auth/callback (SDK default ${origin}/auth/callback) + localhost. tezca-web already existed with audience=tezca-api. Operator runs this seed (Janua uniformity console gate) to register both in prod. Co-authored-by: Aldo R. L. <aldo.ruiz.luna@gmail.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent c67d93f commit 969293b

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

apps/api/scripts/seed_oidc_clients.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,19 @@
137137
"http://localhost:3000/auth/callback",
138138
],
139139
},
140+
{
141+
"client_id": "fortuna-web",
142+
"name": "fortuna-web",
143+
"description": "Fortuna opportunity-intelligence web app — Sign in with Janua (OIDC/PKCE)",
144+
# Must match the audience fortuna-api enforces on the Janua JWT, so the
145+
# OIDC-minted access token carries aud=fortuna (session-API tokens carry
146+
# the global janua.dev audience and are rejected by fortuna-api).
147+
"audience": "fortuna",
148+
"redirect_uris": [
149+
"https://fortuna.tube/auth/callback",
150+
"http://localhost:3000/auth/callback",
151+
],
152+
},
140153
{
141154
"client_id": "dashboard",
142155
"name": "dashboard",

0 commit comments

Comments
 (0)