Skip to content

Commit 14b9831

Browse files
committed
Fix the default auth config processing
1 parent adce04e commit 14b9831

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/portal-options/auth-config-provider.spec.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ describe('PMAuthConfigProvider', () => {
2929
it('should delegate to EnvAuthConfigService if available', async () => {
3030
const req = { hostname: 'foo.example.com' } as Request;
3131
const expected = {
32-
idpName: 'foo',
32+
idpName: 'idp',
3333
baseDomain: 'example.com',
3434
oauthServerUrl: 'url',
3535
oauthTokenUrl: 'token',
@@ -40,7 +40,14 @@ describe('PMAuthConfigProvider', () => {
4040

4141
const result = await provider.getAuthConfig(req);
4242

43-
expect(result).toEqual(expected);
43+
expect(result).toEqual({
44+
idpName: 'foo',
45+
baseDomain: 'example.com',
46+
oauthServerUrl: 'url',
47+
oauthTokenUrl: 'token',
48+
clientId: 'cid',
49+
clientSecret: 'sec',
50+
});
4451
});
4552

4653
it('should fall back to default configuration if EnvAuthConfigService throws', async () => {

0 commit comments

Comments
 (0)