Class SecuritySamlConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • isEnabled

        public SecuritySamlConfig.Builder isEnabled​(Boolean isEnabled)
        A flag determine whether SAML is enabled
        Parameters:
        isEnabled - the value to set
        Returns:
        this builder
      • idpMetadataContent

        public SecuritySamlConfig.Builder idpMetadataContent​(String idpMetadataContent)
        The content of identity provider metadata
        Parameters:
        idpMetadataContent - the value to set
        Returns:
        this builder
      • idpEntityId

        public SecuritySamlConfig.Builder idpEntityId​(String idpEntityId)
        The unique name for a identity provider entity
        Parameters:
        idpEntityId - the value to set
        Returns:
        this builder
      • opendashboardUrl

        public SecuritySamlConfig.Builder opendashboardUrl​(String opendashboardUrl)
        The endpoint of opendashboard
        Parameters:
        opendashboardUrl - the value to set
        Returns:
        this builder
      • adminBackendRole

        public SecuritySamlConfig.Builder adminBackendRole​(String adminBackendRole)
        The backend role of admins who have all permissions like local master user
        Parameters:
        adminBackendRole - the value to set
        Returns:
        this builder
      • subjectKey

        public SecuritySamlConfig.Builder subjectKey​(String subjectKey)
        The subject key is used to get username from SAML assertion.

        By default, it is NameID

        Parameters:
        subjectKey - the value to set
        Returns:
        this builder
      • rolesKey

        public SecuritySamlConfig.Builder rolesKey​(String rolesKey)
        The roles key is sued to get backend roles from SAML assertion
        Parameters:
        rolesKey - the value to set
        Returns:
        this builder