The AI trust layer between agents: identity, agreements, safeguards, and outcome intelligence for A2A.

Commit 97e903f3

97e903f3fe69Merged

aryaamin <[email protected]> · 2 months ago · 3 files · ~3 modified

Description

fix: decouple auth audience from public domain

Details

Commit
97e903f3fe69
Parent
66ff6831b5d2

apps/dashboard/src/main.tsxmodifiedView file

@@ -40,6 +40,7 @@
4040 declare const __AUTH0_DOMAIN__: string;
4141 declare const __AUTH0_CLIENT_ID__: string;
4242 declare const __AUTH0_AUDIENCE__: string;
43+declare const __OPENCLASP_PUBLIC_URL__: string;
4344
4445 type Auth0User = { sub: string; name?: string; email?: string; picture?: string };
4546 type AuthSession = { user: Auth0User };
@@ -149,7 +150,7 @@
149150 sessionStorage.setItem(authTransactionKey, JSON.stringify(transaction));
150151 const parameters = new URLSearchParams({
151152 client_id: __AUTH0_CLIENT_ID__,
152- redirect_uri: `${new URL(__AUTH0_AUDIENCE__).origin}/sso-callback`,
153+ redirect_uri: `${new URL(__OPENCLASP_PUBLIC_URL__).origin}/sso-callback`,
153154 response_type: 'code',
154155 scope: 'openid profile email',
155156 audience: __AUTH0_AUDIENCE__,
@@ -171,7 +172,7 @@
171172 await fetch('/api/session', { method: 'DELETE', credentials: 'same-origin' });
172173 const parameters = new URLSearchParams({
173174 client_id: __AUTH0_CLIENT_ID__,
174- returnTo: `${new URL(__AUTH0_AUDIENCE__).origin}/login`,
175+ returnTo: `${new URL(__OPENCLASP_PUBLIC_URL__).origin}/login`,
175176 });
176177 location.assign(`https://${__AUTH0_DOMAIN__}/v2/logout?${parameters}`);
177178 }