Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ npm install

Go to `src/app/app.modules.ts`

Replace <YOUR DOMAIN> (4 times) with the domain of your own ZITADEL instance
Replace <YOUR APPS CLIENT ID HERE> (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:

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <YOUR DOMAIN> (4 times) with the domain of your own ZITADEL instance
2. Replace <YOUR APPS CLIENT ID HERE> (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

Expand Down
6 changes: 3 additions & 3 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ const authConfig: AuthConfig = {
scope: 'openid profile email offline_access',
responseType: 'code',
oidc: true,
clientId: '<YOUR APPS CLIENT ID HERE>',
issuer: '<YOUR DOMAIN>', // 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
Expand All @@ -34,7 +34,7 @@ const stateHandlerFn = (stateHandler: StatehandlerService) => {
AppRoutingModule,
OAuthModule.forRoot({
resourceServer: {
allowedUrls: ['<YOUR DOMAIN>/admin/v1', '<YOUR DOMAIN>/management/v1', '<YOUR DOMAIN>/auth/v1/'],
allowedUrls: ['${CUSTOM_DOMAIN}/admin/v1', '${CUSTOM_DOMAIN}/management/v1', '${CUSTOM_DOMAIN}/auth/v1/'],
sendAccessToken: true,
},
})], providers: [
Expand Down