Interface HttpAuthenticationProtocolsProvider
-
- All Known Subinterfaces:
ProtocolBasedHttpAuthenticationScheme
- All Known Implementing Classes:
AgentHttpAuthenticationScheme
,AuthorizationHeaderBasedHttpAuthenticationScheme
,BasicHttpAuthenticationScheme
,BasicProtocolBasedHttpAuthenticationScheme
,ProtocolBasedHttpAuthenticationSchemeAdapter
,TokenBasedHttpAuthenticationScheme
@UserImplemented public interface HttpAuthenticationProtocolsProvider
Provides supported protocols for the case when TeamCity is going to answer "401 Unauthorized" on some HTTP request.- Since:
- 8.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<HttpAuthenticationProtocol>
getAllowedProtocols(javax.servlet.http.HttpServletRequest request, Map<String,String> properties)
Returns all authentication protocols those are supported for the specified HTTP request.Set<HttpAuthenticationProtocol>
getForcedProtocols(javax.servlet.http.HttpServletRequest request, Map<String,String> properties)
Returns protocols which are used to force authentication when user is not authenticated.
-
-
-
Method Detail
-
getAllowedProtocols
@NotNull Set<HttpAuthenticationProtocol> getAllowedProtocols(@NotNull javax.servlet.http.HttpServletRequest request, @NotNull Map<String,String> properties)
Returns all authentication protocols those are supported for the specified HTTP request.- Parameters:
request
- requestproperties
- properties from config file- Returns:
- allowed protocols
-
getForcedProtocols
@NotNull Set<HttpAuthenticationProtocol> getForcedProtocols(@NotNull javax.servlet.http.HttpServletRequest request, @NotNull Map<String,String> properties)
Returns protocols which are used to force authentication when user is not authenticated.- Parameters:
request
- requestproperties
- properties from config file- Returns:
- forced protocols
-
-