From b6cfb7d8968864f221e11c1a9573962c61d03eed Mon Sep 17 00:00:00 2001 From: Sara Kazemi Date: Fri, 18 Aug 2023 11:12:39 -0700 Subject: [PATCH 1/5] Add GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN Add GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN to replacement mappings --- src/features/deploy/commands.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/features/deploy/commands.ts b/src/features/deploy/commands.ts index 17b002d..c8b2b83 100644 --- a/src/features/deploy/commands.ts +++ b/src/features/deploy/commands.ts @@ -73,7 +73,8 @@ export class DeployCommands { AUTH0_ALLOW_DELETE: false, AUTH0_KEYWORD_REPLACE_MAPPINGS: { AUTH0_DOMAIN: getDomainFromToken(accessToken), - CODESPACE_NAME: process.env.CODESPACE_NAME + CODESPACE_NAME: process.env.CODESPACE_NAME, + GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN: process.env.GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN } }), }; From c3a12960e04347516ae10d2210c8ffdc920505d5 Mon Sep 17 00:00:00 2001 From: Sara Kazemi Date: Fri, 18 Aug 2023 11:20:55 -0700 Subject: [PATCH 2/5] increment version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7f02e7b..b001c03 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "vscode-labs", "preview": true, "displayName": "Auth0 Labs", - "version": "1.4.4", + "version": "1.4.5", "description": "A Visual Studio Code extension for training lab automation and quick access to tenant information.", "main": "./dist/extension.js", "publisher": "auth0", From a50b990fe154ad3380dbe00233162fbdcac0afc0 Mon Sep 17 00:00:00 2001 From: Sara Kazemi Date: Fri, 18 Aug 2023 13:35:34 -0700 Subject: [PATCH 3/5] Update README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 0399015..8071c63 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,12 @@ In addition to the visual features listed below, the Labs extension also contrib - `AUTH0_DOMAIN`: Your Auth0 domain URI - `AUTH0_TOKEN`: The access token issued to your client from the authorization server. +### Auth0 Deploy CLI Keyword Replacement +This extension uses the Auth0 Deploy CLI, which makes it possible to leverage environment-specific [keyword replacement](https://auth0.com/docs/deploy-monitor/deploy-cli-tool/keyword-replacement) in resource files (e.g., yml and json). These are the current keywords supported: +- `CODESPACE_NAME`: Returns the domain of the GitHub Codespaces forwarded port. For example, `app.github.dev` (when using a Codespaces environment) +- `GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN`: Returns the name of the GitHub Codespace (when using a Codespaces environment) +- `AUTH0_DOMAIN`: Your Auth0 domain URI + ### Authenticating The first thing to do is connect to your Auth0 account. From 695a5c7715d0e8733e5c7bf0faf48fe6ab085097 Mon Sep 17 00:00:00 2001 From: Sara Kazemi Date: Fri, 18 Aug 2023 13:37:34 -0700 Subject: [PATCH 4/5] Update CHANGELOG.md --- CHANGELOG.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f0d400..8170d76 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -149,8 +149,12 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how ### Added - Implemented `auth0.lab.postConfigureCommand` command - Support for writing more than one app config to a single `.env` without overwriting values -- Added runtime-specific replacement values for tenant configuration from yaml: `CODESPACE_NAME` (same as defined [here]( https://docs.github.com/en/codespaces/developing-in-codespaces/default-environment-variables-for-your-codespace)) and `AUTH0_DOMAIN` (your tenant domain). +- Added environment-specific replacement values for tenant configuration from yaml: `CODESPACE_NAME` (same as defined [here]( https://docs.github.com/en/codespaces/developing-in-codespaces/default-environment-variables-for-your-codespace)) and `AUTH0_DOMAIN` (your tenant domain). ## [1.4.4] - 2023-05-31 ### Changed - Auth0 Training logo (branding) + +- ## [1.4.5] - 2023-08-18 +### Added +- Added environment-specific replacement value for tenant configuration from yaml: `GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN` (same as defined [here]( https://docs.github.com/en/codespaces/developing-in-codespaces/default-environment-variables-for-your-codespace) From 678816fafec0e9182440be2c37ddf614da95f8ef Mon Sep 17 00:00:00 2001 From: Sara Kazemi Date: Fri, 18 Aug 2023 13:37:51 -0700 Subject: [PATCH 5/5] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8170d76..97fb485 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -155,6 +155,6 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how ### Changed - Auth0 Training logo (branding) -- ## [1.4.5] - 2023-08-18 +## [1.4.5] - 2023-08-18 ### Added - Added environment-specific replacement value for tenant configuration from yaml: `GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN` (same as defined [here]( https://docs.github.com/en/codespaces/developing-in-codespaces/default-environment-variables-for-your-codespace)