Class OAuthConnectionDescriptor

    • Method Detail

      • getProviderType

        @Nullable
        public String getProviderType()
      • getTokenStorageId

        @NotNull
        public String getTokenStorageId()
      • getConnectionDisplayName

        @NotNull
        public String getConnectionDisplayName()
        Returns:
        connection display name
      • getOauthProvider

        @NotNull
        @Deprecated
        public OAuthProvider getOauthProvider()
        Deprecated.
        Returns:
        OAuth provider which supports this type of OAuth connection
      • getDescription

        @NotNull
        public String getDescription()
        Returns:
        human friendly description of connection parameters
      • getDescriptionForUI

        @NotNull
        public String getDescriptionForUI()
        Returns:
        description of the connection parameters for ui. Will be combined with the return value of getAdditionalDescription
        Since:
        2023.11
      • getAdditionalDescription

        @NotNull
        public String getAdditionalDescription()
        Returns:
        additional description for the ui that won't be escaped(can include html)
      • getProject

        @NotNull
        public SProject getProject()
        Returns:
        project this OAuth connection belongs to
      • isTransientConnection

        public boolean isTransientConnection()
      • buildFullTokenId

        @NotNull
        public String buildFullTokenId​(@NotNull
                                       String tokenId)
      • describe

        @NotNull
        public String describe​(boolean verbose)
        Specified by:
        describe in interface Loggable
        Parameters:
        verbose - verbosity of object description
        Returns:
        description of this object. If verbose is true, description should have mode details.
      • isHidden

        public boolean isHidden()
      • isAcquiringTokenSupported

        public boolean isAcquiringTokenSupported()
      • getScopeForIntent

        @Nullable
        public String getScopeForIntent​(@NotNull
                                        TokenIntent intent)
        Returns a specific OAuth scope to request for the given token intent, if needed. Both this connection and the token intent are taken into account.
        Parameters:
        intent - the intended token usage
        Returns:
        specific OAuth scope, if any
        Since:
        2024.03
      • isUseUniqueRedirect

        public boolean isUseUniqueRedirect()
        Determines whether this connection is configured to use a unique redirect URL. Defaults to false.
        Returns:
        true if unique redirect URL must be used, false otherwise
        Since:
        2024.07