Skip to content

Commit

Permalink
fix: fix bapi url
Browse files Browse the repository at this point in the history
  • Loading branch information
supproduction committed Oct 20, 2024
1 parent 020edfd commit 2a349b8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions libs/platform/auth/src/bapi/feature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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),
},
];
Expand Down

0 comments on commit 2a349b8

Please sign in to comment.