diff --git a/CHANGELOG.md b/CHANGELOG.md index c10592169..ce88411a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +### Fixes + +- 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 - Bump Cocoa SDK from v9.4.0 to v9.4.1 ([#2540](https://github.com/getsentry/sentry-unity/pull/2540)) 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)