From 7412652a35284a4ca271b95e59391e9f5e3e361d Mon Sep 17 00:00:00 2001 From: Livio Spring Date: Mon, 19 Jan 2026 08:03:32 +0100 Subject: [PATCH] chore: naming custom domain --- CONTRIBUTING.md | 4 ++-- README.md | 4 ++-- src/app/app.module.ts | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 927472e..2457a5c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -45,8 +45,8 @@ npm install Go to `src/app/app.modules.ts` -Replace (4 times) with the domain of your own ZITADEL instance -Replace (once) with your application clientId +Replace ${CUSTOM_DOMAIN} (4 times) with the Custom Domain of your own ZITADEL instance +Replace ${CLIENT_ID} (once) with your application clientId 5. Start the developer application/server: diff --git a/README.md b/README.md index 8cb4c4e..f13311b 100644 --- a/README.md +++ b/README.md @@ -13,8 +13,8 @@ To run the example you need to create your ZITADEL instance. If you not already 1. Create ZITADEL instance on zitadel.cloud 2. Login to your ZITADEL instance and create an app according to the [example](https://zitadel.com/docs/examples/login/angular) 3. Go to app.module.ts - 1. Replace (4 times) with the domain of your own ZITADEL instance - 2. Replace (once) with the client id created in the app in step 2 + 1. Replace ${CUSTOM_DOMAIN} (4 times) with the Custom Domain of your own ZITADEL instance + 2. Replace ${CLIENT_ID} (once) with the client id created in the app in step 2 ## Development server diff --git a/src/app/app.module.ts b/src/app/app.module.ts index abad59a..594e898 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -16,8 +16,8 @@ const authConfig: AuthConfig = { scope: 'openid profile email offline_access', responseType: 'code', oidc: true, - clientId: '', - issuer: '', // eg. https://acme-jdo9fs.zitadel.cloud + clientId: '${CLIENT_ID}', + issuer: '${CUSTOM_DOMAIN}', // eg. https://acme-jdo9fs.zitadel.cloud redirectUri: 'http://localhost:4200/auth/callback', postLogoutRedirectUri: 'http://localhost:4200/signedout', requireHttps: false, // required for running locally @@ -34,7 +34,7 @@ const stateHandlerFn = (stateHandler: StatehandlerService) => { AppRoutingModule, OAuthModule.forRoot({ resourceServer: { - allowedUrls: ['/admin/v1', '/management/v1', '/auth/v1/'], + allowedUrls: ['${CUSTOM_DOMAIN}/admin/v1', '${CUSTOM_DOMAIN}/management/v1', '${CUSTOM_DOMAIN}/auth/v1/'], sendAccessToken: true, }, })], providers: [