diff --git a/README.md b/README.md index 5f60d010..84329551 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ This can be done by renaming `auth_config.json.example` (https://github.com/auth "domain": "YOUR_DOMAIN", "clientId": "YOUR_CLIENT_ID", "authorizationParams": { - "audience": "YOUR_API_IDENTIFIER", + "audience": "{yourApiIdentifier}", }, "apiUri": "http://localhost:3001", "appUri": "http://localhost:4200" diff --git a/Sample-01/api-server.js b/Sample-01/api-server.js index cc750c57..bb6a862f 100644 --- a/Sample-01/api-server.js +++ b/Sample-01/api-server.js @@ -10,10 +10,12 @@ const app = express(); if ( !authConfig.domain || !authConfig.authorizationParams.audience || - ["YOUR_API_IDENTIFIER", "{API_IDENTIFIER}"].includes(authConfig.authorizationParams.audience) + ['{yourApiIdentifier}', '{API_IDENTIFIER}'].includes( + authConfig.authorizationParams.audience + ) ) { console.log( - "Exiting: Please make sure that auth_config.json is in place and populated with valid domain and audience values" + 'Exiting: Please make sure that auth_config.json is in place and populated with valid domain and audience values' ); process.exit(); diff --git a/Sample-01/src/app/pages/external-api/external-api.component.html b/Sample-01/src/app/pages/external-api/external-api.component.html index 9f9f40bb..3c3b71c0 100644 --- a/Sample-01/src/app/pages/external-api/external-api.component.html +++ b/Sample-01/src/app/pages/external-api/external-api.component.html @@ -1,6 +1,6 @@
You can't call the API at the moment because your application does not
have any configuration for audience, or it is using the
- default value of YOUR_API_IDENTIFIER. You might get this
+ default value of {yourApiIdentifier}. You might get this
default value if you used the "Download Sample" feature of
the quickstart guide
You can't call the API at the moment because your application does not
have any configuration for audience, or it is using the
- default value of YOUR_API_IDENTIFIER. You might get this
+ default value of {yourApiIdentifier}. You might get this
default value if you used the "Download Sample" feature of
the quickstart guide