diff --git a/dmp-frontend/src/app/core/model/auth/principal.ts b/dmp-frontend/src/app/core/model/auth/principal.ts index c0012e7cd..27609c091 100644 --- a/dmp-frontend/src/app/core/model/auth/principal.ts +++ b/dmp-frontend/src/app/core/model/auth/principal.ts @@ -19,6 +19,7 @@ export interface AppPrincipalInfo{ notBefore: Date; authenticatedAt: Date; expiresAt: Date; + userId: Guid; more: Record } export interface UserProfileInfo { diff --git a/dmp-frontend/src/app/core/services/auth/auth.service.ts b/dmp-frontend/src/app/core/services/auth/auth.service.ts index 66238f10a..a69d35d4d 100644 --- a/dmp-frontend/src/app/core/services/auth/auth.service.ts +++ b/dmp-frontend/src/app/core/services/auth/auth.service.ts @@ -125,9 +125,9 @@ export class AuthService extends BaseService { if ( this.appAccount && this.appAccount.principal && - this.appAccount.principal.subject + this.appAccount.principal.userId ) { - return this.appAccount.principal.subject; + return this.appAccount.principal.userId; } return null; }