Skip to content

Commit

Permalink
Merge pull request #52 from supproduction/bugfix/fix-bapi-url
Browse files Browse the repository at this point in the history
fix: fix bapi url
  • Loading branch information
tolerants authored Oct 21, 2024
2 parents fc94309 + e5c2912 commit 996e1d1
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_BAPI_BACKEND_URL') ?? '',
'/authorize'
),
} as CodeGrantAuthLoginStrategyConfig),
},
];
Expand Down

0 comments on commit 996e1d1

Please sign in to comment.