Skip to content

Commit

Permalink
[front] Add clientid for browser extension (#9044)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdraier authored Dec 2, 2024
1 parent eb8163f commit e25f9b3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions front/lib/api/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ const config = {
getAuth0WebApplicationId: (): string => {
return EnvironmentConfig.getEnvVariable("AUTH0_WEB_APP_CLIENT_ID");
},
getAuth0ExtensionApplicationId: (): string => {
return EnvironmentConfig.getEnvVariable("AUTH0_EXTENSION_CLIENT_ID");
},
getDustInviteTokenSecret: (): string => {
return EnvironmentConfig.getEnvVariable("DUST_INVITE_TOKEN_SECRET");
},
Expand Down
5 changes: 4 additions & 1 deletion front/lib/api/enterprise_connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ export async function createEnterpriseConnection(
},
is_domain_connection: false,
realms: [],
enabled_clients: [config.getAuth0WebApplicationId()],
enabled_clients: [
config.getAuth0WebApplicationId(),
config.getAuth0ExtensionApplicationId(),
],
metadata: {},
});

Expand Down

0 comments on commit e25f9b3

Please sign in to comment.