Skip to content

Commit

Permalink
fix for oidc module test undefined env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianW committed Dec 10, 2024
1 parent 002cdac commit cbaa903
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/oidc/src/services/oidc.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { SSRPagesService } from './ssr-pages.service';
import passport = require('passport');

describe('OidcService', () => {
let service/* = new OidcService(MOCK_OIDC_MODULE_OPTIONS, new ConfigService(), new SSRPagesService()) */;
let service;
let options: OidcModuleOptions = MOCK_OIDC_MODULE_OPTIONS;
const idpKey = 'idpKey';

Expand Down
2 changes: 1 addition & 1 deletion libs/oidc/src/services/oidc.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class OidcService implements OnModuleInit {
this.isMultitenant = !!this.options.issuerOrigin;
this.#instanceID = configService.get('SERVER_INSTANCE_ID');
this.#region = configService.get('REGION_NAME');
this.#sessionKey = `oidc:${configService.get('APIM_BASE_URL').replace('https://', '')}`;
this.#sessionKey = configService.get('APIM_BASE_URL') ? `oidc:${configService.get('APIM_BASE_URL').replace('https://', '')}` : undefined;
this.#oidc_redirect_uri = configService.get('OIDC_REDIRECT_URI') ? `${configService.get('OIDC_REDIRECT_URI')}` : `${this.options.origin}`;
}

Expand Down

0 comments on commit cbaa903

Please sign in to comment.