From 95ad5bf5db583ec6c139744fad7efa2ee1e83dea Mon Sep 17 00:00:00 2001 From: Stijn Taelemans Date: Mon, 3 May 2021 17:38:23 +0200 Subject: [PATCH] feat: added support for dynamic client names (#118) Co-authored-by: Wouter Janssens --- .../lib/common/solid/solid-sdk.service.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/nde-erfgoed-manage/lib/common/solid/solid-sdk.service.ts b/packages/nde-erfgoed-manage/lib/common/solid/solid-sdk.service.ts index ee56bcd6..8d639286 100644 --- a/packages/nde-erfgoed-manage/lib/common/solid/solid-sdk.service.ts +++ b/packages/nde-erfgoed-manage/lib/common/solid/solid-sdk.service.ts @@ -13,7 +13,10 @@ export class SolidSDKService extends SolidService { * * @param logger The logger used in the service. */ - constructor(private logger: Logger) { + constructor( + private logger: Logger, + private clientName = 'NDE Collectiebeheersysteem', + ) { super(); } @@ -116,7 +119,7 @@ export class SolidSDKService extends SolidService { await login({ oidcIssuer: issuer, redirectUrl: window.location.href, - clientName: 'Getting started app', + clientName: this.clientName, }); }