diff --git a/libs/platform/auth/src/bapi/feature.ts b/libs/platform/auth/src/bapi/feature.ts index 2d2876bd..95df6244 100644 --- a/libs/platform/auth/src/bapi/feature.ts +++ b/libs/platform/auth/src/bapi/feature.ts @@ -9,7 +9,7 @@ import { oauthHandlerComponent, } from '@oryx-frontend/auth'; import { AuthLoginStrategy } from '@oryx-frontend/auth/login'; -import { AppFeature, AppPlugin } from '@oryx-frontend/core'; +import { AppFeature, AppPlugin, injectEnv } from '@oryx-frontend/core'; import { Provider } from '@oryx-frontend/di'; import { provideLitRoutes } from '@oryx-frontend/router/lit'; import { ComponentsInfo } from '@oryx-frontend/utilities'; @@ -78,7 +78,10 @@ export class BapiAuthFeature extends OauthFeature implements AppFeature { provide: CodeGrantAuthLoginStrategyConfig, useFactory: () => ({ - loginUrl: urlJoin('', '/authorize'), + loginUrl: urlJoin( + injectEnv('ORYX_FULFILLMENT_BACKEND_URL') ?? '', + '/authorize' + ), } as CodeGrantAuthLoginStrategyConfig), }, ];