From fd6f28570d472527237af32a03528cc91875b82c Mon Sep 17 00:00:00 2001 From: juanpacostaaa Date: Fri, 24 Apr 2026 15:45:51 -0700 Subject: [PATCH 1/4] Updated DEV service app ids to new 3pa, updated all non-generated files in all languages and updated go version --- cs/src/Contracts/TunnelServiceProperties.cs | 14 +++++++------- go/tunnels/manager.go | 4 ++-- go/tunnels/tunnels.go | 2 +- .../contracts/TunnelServicePropertiesStatics.java | 4 ++-- rs/src/contracts/tunnel_environments.rs | 2 +- ts/src/contracts/tunnelServicePropertiesStatics.ts | 6 +++--- 6 files changed, 16 insertions(+), 16 deletions(-) diff --git a/cs/src/Contracts/TunnelServiceProperties.cs b/cs/src/Contracts/TunnelServiceProperties.cs index c4cc2c81..b06e4d34 100644 --- a/cs/src/Contracts/TunnelServiceProperties.cs +++ b/cs/src/Contracts/TunnelServiceProperties.cs @@ -51,14 +51,14 @@ public class TunnelServiceProperties internal const string PpeFirstPartyAppId = "54c45752-bacd-424a-b928-652f3eca2b18"; /// - /// Third-party app ID: `DEV-VSTunnelService-3P` + /// Third-party app ID for the DEV service environment. /// /// - /// Used for authenticating AAD/MSA users, and service principals outside the AME tenant, - /// in the DEV service environment. - /// This is a 3P app registration in the Microsoft corp tenant, replacing the former 1P FPA. + /// A 3PA registered in the test tenant, used for authenticating AAD/MSA users + /// and service principals outside the AME tenant. Replaces the former 1P FPA + /// (9c63851a) which was disabled. /// - internal const string DevFirstPartyAppId = "906ce216-6f2e-40be-875d-7fe1a9bc288a"; + internal const string DevServiceAppId = "686ab1c6-3cd9-4a62-b228-4f71eaaaf53e"; /// /// Third-party app ID: `tunnels-prod-app-sp` @@ -158,7 +158,7 @@ private TunnelServiceProperties( /// public static TunnelServiceProperties Development { get; } = new TunnelServiceProperties( $"https://{DevDnsName}/", - DevFirstPartyAppId, + DevServiceAppId, DevThirdPartyAppId, DevGitHubAppClientId); @@ -171,7 +171,7 @@ private TunnelServiceProperties( /// public static TunnelServiceProperties Local { get; } = new TunnelServiceProperties( $"https://{LocalDnsName}/", - DevFirstPartyAppId, + DevServiceAppId, DevThirdPartyAppId, LocalGitHubAppClientId); diff --git a/go/tunnels/manager.go b/go/tunnels/manager.go index b316abb4..282e7fff 100644 --- a/go/tunnels/manager.go +++ b/go/tunnels/manager.go @@ -33,7 +33,7 @@ var PpeServiceProperties = TunnelServiceProperties{ var DevServiceProperties = TunnelServiceProperties{ ServiceURI: fmt.Sprintf("https://%s/", devDnsName), - ServiceAppID: devFirstPartyAppID, + ServiceAppID: devServiceAppID, ServiceInternalAppID: devThirdPartyAppID, GitHubAppClientID: devGitHubAppClientID, } @@ -42,7 +42,7 @@ var DevServiceProperties = TunnelServiceProperties{ // but a different GitHub app with localhost callback URLs. var LocalServiceProperties = TunnelServiceProperties{ ServiceURI: fmt.Sprintf("https://%s/", localDnsName), - ServiceAppID: devFirstPartyAppID, + ServiceAppID: devServiceAppID, ServiceInternalAppID: devThirdPartyAppID, GitHubAppClientID: localGitHubAppClientID, } diff --git a/go/tunnels/tunnels.go b/go/tunnels/tunnels.go index 2d8c7ee8..1c18da08 100644 --- a/go/tunnels/tunnels.go +++ b/go/tunnels/tunnels.go @@ -10,7 +10,7 @@ import ( "github.com/rodaine/table" ) -const PackageVersion = "0.1.24" +const PackageVersion = "0.1.25" func (tunnel *Tunnel) requestObject() (*Tunnel, error) { convertedTunnel := &Tunnel{ diff --git a/java/src/main/java/com/microsoft/tunnels/contracts/TunnelServicePropertiesStatics.java b/java/src/main/java/com/microsoft/tunnels/contracts/TunnelServicePropertiesStatics.java index 51cf2167..fbb42061 100644 --- a/java/src/main/java/com/microsoft/tunnels/contracts/TunnelServicePropertiesStatics.java +++ b/java/src/main/java/com/microsoft/tunnels/contracts/TunnelServicePropertiesStatics.java @@ -31,7 +31,7 @@ class TunnelServicePropertiesStatics { */ static final TunnelServiceProperties development = new TunnelServiceProperties( "https://" + TunnelServiceProperties.devDnsName + "/", - TunnelServiceProperties.devFirstPartyAppId, + TunnelServiceProperties.devServiceAppId, TunnelServiceProperties.devThirdPartyAppId, TunnelServiceProperties.devGitHubAppClientId); @@ -43,7 +43,7 @@ class TunnelServicePropertiesStatics { */ static final TunnelServiceProperties local = new TunnelServiceProperties( "https://" + TunnelServiceProperties.localDnsName + "/", - TunnelServiceProperties.devFirstPartyAppId, + TunnelServiceProperties.devServiceAppId, TunnelServiceProperties.devThirdPartyAppId, TunnelServiceProperties.localGitHubAppClientId); diff --git a/rs/src/contracts/tunnel_environments.rs b/rs/src/contracts/tunnel_environments.rs index e6b6d55d..6dd63e9f 100644 --- a/rs/src/contracts/tunnel_environments.rs +++ b/rs/src/contracts/tunnel_environments.rs @@ -24,7 +24,7 @@ pub fn env_staging() -> TunnelServiceProperties { pub fn env_development() -> TunnelServiceProperties { TunnelServiceProperties { service_uri: format!("https://{}", DEV_DNS_NAME), - service_app_id: DEV_FIRST_PARTY_APP_ID.to_owned(), + service_app_id: DEV_SERVICE_APP_ID.to_owned(), service_internal_app_id: DEV_THIRD_PARTY_APP_ID.to_owned(), github_app_client_id: DEV_GITHUB_APP_CLIENT_ID.to_owned(), } diff --git a/ts/src/contracts/tunnelServicePropertiesStatics.ts b/ts/src/contracts/tunnelServicePropertiesStatics.ts index b9359b10..adb913b1 100644 --- a/ts/src/contracts/tunnelServicePropertiesStatics.ts +++ b/ts/src/contracts/tunnelServicePropertiesStatics.ts @@ -5,7 +5,7 @@ import { TunnelServiceProperties as ITunnelServiceProperties, prodFirstPartyAppId, ppeFirstPartyAppId, - devFirstPartyAppId, + devServiceAppId, prodThirdPartyAppId, ppeThirdPartyAppId, devThirdPartyAppId, @@ -44,7 +44,7 @@ export const staging = { */ export const development = { serviceUri: `https://${devDnsName}/`, - serviceAppId: devFirstPartyAppId, + serviceAppId: devServiceAppId, serviceInternalAppId: devThirdPartyAppId, gitHubAppClientId: devGitHubAppClientId, }; @@ -57,7 +57,7 @@ export const development = { */ export const local = { serviceUri: `https://${localDnsName}/`, - serviceAppId: devFirstPartyAppId, + serviceAppId: devServiceAppId, serviceInternalAppId: devThirdPartyAppId, gitHubAppClientId: localGitHubAppClientId, }; From 67b18dfb5d4c7e735696f180b58886e04dba7a6f Mon Sep 17 00:00:00 2001 From: juanpacostaaa Date: Fri, 24 Apr 2026 15:46:16 -0700 Subject: [PATCH 2/4] Regenerated the sdk and commiting modified files with new 3pa app id --- go/tunnels/tunnel_service_properties.go | 10 +++++----- .../tunnels/contracts/TunnelServiceProperties.java | 10 +++++----- rs/src/contracts/tunnel_service_properties.rs | 10 +++++----- ts/src/contracts/tunnelServiceProperties.ts | 10 +++++----- 4 files changed, 20 insertions(+), 20 deletions(-) diff --git a/go/tunnels/tunnel_service_properties.go b/go/tunnels/tunnel_service_properties.go index cac6bd3b..bf330776 100644 --- a/go/tunnels/tunnel_service_properties.go +++ b/go/tunnels/tunnel_service_properties.go @@ -53,12 +53,12 @@ var prodFirstPartyAppID = "46da2f7e-b5ef-422a-88d4-2a7f9de6a0b2" // in the PPE service environments. var ppeFirstPartyAppID = "54c45752-bacd-424a-b928-652f3eca2b18" -// Third-party app ID: `DEV-VSTunnelService-3P` +// Third-party app ID for the DEV service environment. // -// Used for authenticating AAD/MSA users, and service principals outside the AME tenant, -// in the DEV service environment. This is a 3P app registration in the Microsoft corp -// tenant, replacing the former 1P FPA. -var devFirstPartyAppID = "906ce216-6f2e-40be-875d-7fe1a9bc288a" +// A 3PA registered in the test tenant, used for authenticating AAD/MSA users and service +// principals outside the AME tenant. Replaces the former 1P FPA (9c63851a) which was +// disabled. +var devServiceAppID = "686ab1c6-3cd9-4a62-b228-4f71eaaaf53e" // Third-party app ID: `tunnels-prod-app-sp` // diff --git a/java/src/main/java/com/microsoft/tunnels/contracts/TunnelServiceProperties.java b/java/src/main/java/com/microsoft/tunnels/contracts/TunnelServiceProperties.java index 82405f1a..28ac4df2 100644 --- a/java/src/main/java/com/microsoft/tunnels/contracts/TunnelServiceProperties.java +++ b/java/src/main/java/com/microsoft/tunnels/contracts/TunnelServiceProperties.java @@ -54,13 +54,13 @@ public class TunnelServiceProperties { static final String ppeFirstPartyAppId = "54c45752-bacd-424a-b928-652f3eca2b18"; /** - * Third-party app ID: `DEV-VSTunnelService-3P` + * Third-party app ID for the DEV service environment. * - * Used for authenticating AAD/MSA users, and service principals outside the AME - * tenant, in the DEV service environment. This is a 3P app registration in the - * Microsoft corp tenant, replacing the former 1P FPA. + * A 3PA registered in the test tenant, used for authenticating AAD/MSA users and + * service principals outside the AME tenant. Replaces the former 1P FPA (9c63851a) + * which was disabled. */ - static final String devFirstPartyAppId = "906ce216-6f2e-40be-875d-7fe1a9bc288a"; + static final String devServiceAppId = "686ab1c6-3cd9-4a62-b228-4f71eaaaf53e"; /** * Third-party app ID: `tunnels-prod-app-sp` diff --git a/rs/src/contracts/tunnel_service_properties.rs b/rs/src/contracts/tunnel_service_properties.rs index 2f2f5285..1a2754c7 100644 --- a/rs/src/contracts/tunnel_service_properties.rs +++ b/rs/src/contracts/tunnel_service_properties.rs @@ -55,12 +55,12 @@ pub const PROD_FIRST_PARTY_APP_ID: &str = "46da2f7e-b5ef-422a-88d4-2a7f9de6a0b2" // in the PPE service environments. pub const PPE_FIRST_PARTY_APP_ID: &str = "54c45752-bacd-424a-b928-652f3eca2b18"; -// Third-party app ID: `DEV-VSTunnelService-3P` +// Third-party app ID for the DEV service environment. // -// Used for authenticating AAD/MSA users, and service principals outside the AME tenant, -// in the DEV service environment. This is a 3P app registration in the Microsoft corp -// tenant, replacing the former 1P FPA. -pub const DEV_FIRST_PARTY_APP_ID: &str = "906ce216-6f2e-40be-875d-7fe1a9bc288a"; +// A 3PA registered in the test tenant, used for authenticating AAD/MSA users and service +// principals outside the AME tenant. Replaces the former 1P FPA (9c63851a) which was +// disabled. +pub const DEV_SERVICE_APP_ID: &str = "686ab1c6-3cd9-4a62-b228-4f71eaaaf53e"; // Third-party app ID: `tunnels-prod-app-sp` // diff --git a/ts/src/contracts/tunnelServiceProperties.ts b/ts/src/contracts/tunnelServiceProperties.ts index 521a5c01..e3d7e6bc 100644 --- a/ts/src/contracts/tunnelServiceProperties.ts +++ b/ts/src/contracts/tunnelServiceProperties.ts @@ -75,13 +75,13 @@ export const prodFirstPartyAppId = '46da2f7e-b5ef-422a-88d4-2a7f9de6a0b2'; export const ppeFirstPartyAppId = '54c45752-bacd-424a-b928-652f3eca2b18'; /** - * Third-party app ID: `DEV-VSTunnelService-3P` + * Third-party app ID for the DEV service environment. * - * Used for authenticating AAD/MSA users, and service principals outside the AME tenant, - * in the DEV service environment. This is a 3P app registration in the Microsoft corp - * tenant, replacing the former 1P FPA. + * A 3PA registered in the test tenant, used for authenticating AAD/MSA users and service + * principals outside the AME tenant. Replaces the former 1P FPA (9c63851a) which was + * disabled. */ -export const devFirstPartyAppId = '906ce216-6f2e-40be-875d-7fe1a9bc288a'; +export const devServiceAppId = '686ab1c6-3cd9-4a62-b228-4f71eaaaf53e'; /** * Third-party app ID: `tunnels-prod-app-sp` From caec8a9cb8408d6d0817e0666fd7d9026ddf9e0b Mon Sep 17 00:00:00 2001 From: juanpacostaaa Date: Fri, 24 Apr 2026 15:53:37 -0700 Subject: [PATCH 3/4] Updated the dependencies in package.json for connections and management to require a dependency that is > the current published version --- ts/src/connections/package.json | 2 +- ts/src/management/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/src/connections/package.json b/ts/src/connections/package.json index fc202c1d..53dbf27d 100644 --- a/ts/src/connections/package.json +++ b/ts/src/connections/package.json @@ -18,7 +18,7 @@ "buffer": "^5.2.1", "debug": "^4.1.1", "vscode-jsonrpc": "^4.0.0", - "@microsoft/dev-tunnels-contracts": "^1.3.38", + "@microsoft/dev-tunnels-contracts": ">1.3.43", "@microsoft/dev-tunnels-management": "^1.3.38", "uuid": "^3.3.3", "await-semaphore": "^0.1.3", diff --git a/ts/src/management/package.json b/ts/src/management/package.json index 35490905..f85e344a 100644 --- a/ts/src/management/package.json +++ b/ts/src/management/package.json @@ -18,7 +18,7 @@ "buffer": "^5.2.1", "debug": "^4.1.1", "vscode-jsonrpc": "^4.0.0", - "@microsoft/dev-tunnels-contracts": "^1.3.38", + "@microsoft/dev-tunnels-contracts": ">1.3.43", "axios": "^1.8.4" } } From 578c147d1ccf5fb71d1beca6946677ad3526acfc Mon Sep 17 00:00:00 2001 From: juanpacostaaa Date: Fri, 24 Apr 2026 16:02:05 -0700 Subject: [PATCH 4/4] Fixed old constant i forgot to manually replace for new 3pa dev app id. Co-authored-by: Copilot --- rs/src/contracts/tunnel_environments.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rs/src/contracts/tunnel_environments.rs b/rs/src/contracts/tunnel_environments.rs index 6dd63e9f..9b74d424 100644 --- a/rs/src/contracts/tunnel_environments.rs +++ b/rs/src/contracts/tunnel_environments.rs @@ -33,7 +33,7 @@ pub fn env_development() -> TunnelServiceProperties { pub fn env_local() -> TunnelServiceProperties { TunnelServiceProperties { service_uri: format!("https://{}", LOCAL_DNS_NAME), - service_app_id: DEV_FIRST_PARTY_APP_ID.to_owned(), + service_app_id: DEV_SERVICE_APP_ID.to_owned(), service_internal_app_id: DEV_THIRD_PARTY_APP_ID.to_owned(), github_app_client_id: LOCAL_GITHUB_APP_CLIENT_ID.to_owned(), }