From 42989819b8a4ec14f02ebd4523069b9e93b81f4f Mon Sep 17 00:00:00 2001 From: bitsandfoxes Date: Wed, 11 Feb 2026 17:37:49 +0100 Subject: [PATCH 1/3] Remove faulty token validation --- .../ConfigurationWindow/DebugSymbolsTab.cs | 15 --------------- src/Sentry.Unity/SentryCliOptions.cs | 2 -- 2 files changed, 17 deletions(-) diff --git a/src/Sentry.Unity.Editor/ConfigurationWindow/DebugSymbolsTab.cs b/src/Sentry.Unity.Editor/ConfigurationWindow/DebugSymbolsTab.cs index 89eac6438..a1d9dd38f 100644 --- a/src/Sentry.Unity.Editor/ConfigurationWindow/DebugSymbolsTab.cs +++ b/src/Sentry.Unity.Editor/ConfigurationWindow/DebugSymbolsTab.cs @@ -35,27 +35,12 @@ internal static void Display(SentryCliOptions cliOptions) "The authorization token from your user settings in Sentry"), cliOptions.Auth); - // Org tokens have a `sntrys` prefix and do not require an organisation - var isOrgAuthToken = cliOptions.IsOrgAuthToken(); - if (isOrgAuthToken) - { - EditorGUILayout.HelpBox( - "Organization Auth Token detected. The token's embedded 'org slug' will be used during " + - "symbol upload.", - MessageType.Info); - } - - EditorGUI.BeginDisabledGroup(isOrgAuthToken); - cliOptions.Organization = EditorGUILayout.TextField( new GUIContent( "Org Slug", - cliOptions.UploadSymbols && string.IsNullOrWhiteSpace(cliOptions.Organization) && !isOrgAuthToken ? SentryWindow.ErrorIcon : null, "The organization slug in Sentry"), cliOptions.Organization); - EditorGUI.EndDisabledGroup(); - cliOptions.Project = EditorGUILayout.TextField( new GUIContent( "Project Name", diff --git a/src/Sentry.Unity/SentryCliOptions.cs b/src/Sentry.Unity/SentryCliOptions.cs index 3b5b1d269..9dad47a84 100644 --- a/src/Sentry.Unity/SentryCliOptions.cs +++ b/src/Sentry.Unity/SentryCliOptions.cs @@ -31,8 +31,6 @@ internal static string GetConfigPath(string? notDefaultConfigName = null) private static void MissingFieldWarning(IDiagnosticLogger? logger, string name) => logger?.LogWarning("{0} missing. Please set it under {1}", name, EditorMenuPath); - public bool IsOrgAuthToken() => Auth is not null && Auth.StartsWith("sntrys_"); - public bool IsValid(IDiagnosticLogger? logger, bool isDevelopmentBuild) { if (!UploadSymbols) From f79833ee93690e23c5686f2b30378e154ee7ab28 Mon Sep 17 00:00:00 2001 From: bitsandfoxes Date: Wed, 11 Feb 2026 17:53:05 +0100 Subject: [PATCH 2/3] Updated CHANGELOG.md --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7cb7095bb..ca58dc68e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## Unreleased + +### Fixes + +- The SDK no longer wrongly disabled the org slug field based on assumed the auth-tolken type ([#2537](https://github.com/getsentry/sentry-unity/pull/2537)) + ## 4.1.0 ### Deprecations From dd7f429dbea87182c10e295a00389d007b74ff93 Mon Sep 17 00:00:00 2001 From: Stefan Jandl Date: Thu, 12 Feb 2026 11:25:23 +0100 Subject: [PATCH 3/3] Apply suggestion from @bitsandfoxes --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c60f167b..ce88411a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ ### Fixes -- The SDK no longer wrongly disabled the org slug field based on assumed the auth-tolken type ([#2537](https://github.com/getsentry/sentry-unity/pull/2537)) +- The SDK no longer wrongly disables the org slug field based on assumed the auth-tolken type ([#2537](https://github.com/getsentry/sentry-unity/pull/2537)) ### Dependencies