Skip to content

Commit 6184421

Browse files
committed
fixed userInfoEndpoint in Tests and Mappings
1 parent 30de292 commit 6184421

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

projects/angular-auth-oidc-client/src/lib/config/auth-well-known/auth-well-known-data.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class AuthWellKnownDataService {
1919
jwksUri: wellKnownEndpoints.jwks_uri,
2020
authorizationEndpoint: wellKnownEndpoints.authorization_endpoint,
2121
tokenEndpoint: wellKnownEndpoints.token_endpoint,
22-
userinfoEndpoint: wellKnownEndpoints.userinfo_endpoint,
22+
userInfoEndpoint: wellKnownEndpoints.userinfo_endpoint,
2323
endSessionEndpoint: wellKnownEndpoints.end_session_endpoint,
2424
checkSessionIframe: wellKnownEndpoints.check_session_iframe,
2525
revocationEndpoint: wellKnownEndpoints.revocation_endpoint,

projects/angular-auth-oidc-client/src/lib/userData/user-service.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ describe('User Service', () => {
444444
spyOn(configProvider, 'getOpenIDConfiguration').and.returnValue({ configId: 'configId' });
445445
const serviceAsAny = userService as any;
446446
spyOn(storagePersistenceService, 'getAccessToken').and.returnValue('accessToken');
447-
spyOn(storagePersistenceService, 'read').withArgs('authWellKnownEndPoints', 'configId').and.returnValue({ userinfoEndpoint: null });
447+
spyOn(storagePersistenceService, 'read').withArgs('authWellKnownEndPoints', 'configId').and.returnValue({ userInfoEndpoint: null });
448448
serviceAsAny.getIdentityUserData('configId').subscribe({
449449
error: (err) => {
450450
expect(err).toBeTruthy();
@@ -454,7 +454,7 @@ describe('User Service', () => {
454454
);
455455

456456
it(
457-
'gets userData if authwell and userinfoEndpoint is set',
457+
'gets userData if authwell and userInfoEndpoint is set',
458458
waitForAsync(() => {
459459
spyOn(configProvider, 'getOpenIDConfiguration').and.returnValue({ configId: 'configId' });
460460
const serviceAsAny = userService as any;
@@ -513,7 +513,7 @@ describe('User Service', () => {
513513
spyOn(storagePersistenceService, 'getAccessToken').and.returnValue('accessToken');
514514
spyOn(storagePersistenceService, 'read')
515515
.withArgs('authWellKnownEndPoints', 'configId')
516-
.and.returnValue({ userinfoEndpoint: 'userinfoEndpoint' });
516+
.and.returnValue({ userInfoEndpoint: 'userInfoEndpoint' });
517517
spyOn(dataService, 'get').and.returnValue(createRetriableStream(throwError({}), throwError({}), throwError({}), of(DUMMY_USER_DATA)));
518518

519519
(userService as any).getIdentityUserData('configId').subscribe({

0 commit comments

Comments
 (0)