Skip to content

Commit c62846b

Browse files
apognuChibiBlasphem
authored andcommitted
Override token URL to use the backend API.
1 parent 09a6ef4 commit c62846b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/app-builder/src/services/auth/oidc.server.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@ export const makeOidcService = async (configRepository: AppConfigRepository) =>
2323
return oidcStrategy;
2424
}
2525

26+
const apiUrl = getServerEnv('MARBLE_API_URL_SERVER');
2627
const config = await configRepository.getAppConfig();
2728

2829
oidcStrategy = (await MarbleOidcStrategy.discover(
2930
config.auth.oidc.issuer,
3031
{
32+
tokenEndpoint: `${apiUrl}/oidc/token`,
3133
cookie: 'oauth2',
3234
clientId: config.auth.oidc.client_id,
3335
clientSecret: getServerEnv('OIDC_CLIENT_SECRET'),

0 commit comments

Comments
 (0)