Interface OAuthConstants


  • public interface OAuthConstants
    • Field Detail

      • FEATURE_TOGGLE_TOKEN_MGMT_SUPPORT_TOKEN_PERMS

        static final String FEATURE_TOGGLE_TOKEN_MGMT_SUPPORT_TOKEN_PERMS
        This feature toggle is used to control whether token management UI components should support so-called token permissions. Token permissions are directly related to a token's OAuth scope and the token intent. If this toggle is disabled, TeamCity will neither ask for the token intent for new tokens nor display the OAuth scope for existing tokens. This toggle is disabled by default.
        Since:
        2024.12
        See Also:
        TokenIntent, OAuthProvider.getScopeForIntent(OAuthConnectionDescriptor, TokenIntent), Constant Field Values
      • FEATURE_TOGGLE_TOKEN_MGMT_RESTRICT_USAGE

        static final String FEATURE_TOGGLE_TOKEN_MGMT_RESTRICT_USAGE
        This feature toggle is used to control whether token management allows admin users to use tokens of all users. By default, even project admins are only allowed to use their own tokens or non-personal tokens. If this toggle is disabled, project admins will be able to see / use token IDs of all tokens available to their projects. This toggle is enabled by default.
        Since:
        2024.12
        See Also:
        Constant Field Values
      • FEATURE_TOGGLE_TOKEN_MGMT_FILTER_CONNECTIONS

        static final String FEATURE_TOGGLE_TOKEN_MGMT_FILTER_CONNECTIONS
        This feature toogle is used to control whether the "token controls" UI components can filter connections by accessible entities. Accessible entities are provider-specific restrictions e.g., accessible repositories for GitHub App connections. This toggle is enabled by default.
        Since:
        2024.12
        See Also:
        Constant Field Values
      • FEATURE_TOGGLE_TOKEN_MGMT_ALLOW_SHOW_ALL_TOKENS

        static final String FEATURE_TOGGLE_TOKEN_MGMT_ALLOW_SHOW_ALL_TOKENS
        When this feature toggle is enabled, the token list will provide an option to show all available tokens. Normally, tokens are filtered by their project scope and tokens without any scope are not shown at all. With this UI option, project admins can optionally see the whole list of tokens available to their project.
        Since:
        2024.12
        See Also:
        Constant Field Values
      • PARAM_ISSUE_TOKEN_PARAMETERS_REFERENCE

        static final String PARAM_ISSUE_TOKEN_PARAMETERS_REFERENCE
        A request parameter that holds a reference to remembered configuration parameters used when issuing a new OAuth token.
        Since:
        2024.07
        See Also:
        Constant Field Values
      • DEFAULT_REDIRECT_STORAGE_CLEANUP_COOLDOWN_MILLIS

        static final long DEFAULT_REDIRECT_STORAGE_CLEANUP_COOLDOWN_MILLIS