Class BasicIdentityProvider.BasicFixAuthenticationMechanism
java.lang.Object
io.undertow.security.impl.BasicAuthenticationMechanism
org.openremote.container.security.basic.BasicIdentityProvider.BasicFixAuthenticationMechanism
- All Implemented Interfaces:
io.undertow.security.api.AuthenticationMechanism
- Enclosing class:
- BasicIdentityProvider
protected static class BasicIdentityProvider.BasicFixAuthenticationMechanism
extends io.undertow.security.impl.BasicAuthenticationMechanism
This is a fix for
BasicAuthenticationMechanism which doesn't conform to RFC2617.
see: https://issues.redhat.com/browse/UNDERTOW-1727
When no Headers.AUTHORIZATION header is supplied then a 401 is returned with
Headers.WWW_AUTHENTICATE header unless silent is true in which case
a 403 will be returned.
When an Headers.AUTHORIZATION header is supplied and is valid then the request
can proceed otherwise a 403 is returned.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classNested classes/interfaces inherited from interface io.undertow.security.api.AuthenticationMechanism
io.undertow.security.api.AuthenticationMechanism.AuthenticationMechanismOutcome, io.undertow.security.api.AuthenticationMechanism.ChallengeResult -
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from class io.undertow.security.impl.BasicAuthenticationMechanism
CHARSET, SILENT, USER_AGENT_CHARSETS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.undertow.security.api.AuthenticationMechanism.AuthenticationMechanismOutcomeauthenticate(io.undertow.server.HttpServerExchange exchange, io.undertow.security.api.SecurityContext securityContext) io.undertow.security.api.AuthenticationMechanism.ChallengeResultsendChallenge(io.undertow.server.HttpServerExchange exchange, io.undertow.security.api.SecurityContext securityContext)
-
Field Details
-
FACTORY
-
-
Constructor Details
-
BasicFixAuthenticationMechanism
-
-
Method Details
-
authenticate
public io.undertow.security.api.AuthenticationMechanism.AuthenticationMechanismOutcome authenticate(io.undertow.server.HttpServerExchange exchange, io.undertow.security.api.SecurityContext securityContext) - Specified by:
authenticatein interfaceio.undertow.security.api.AuthenticationMechanism- Overrides:
authenticatein classio.undertow.security.impl.BasicAuthenticationMechanism
-
sendChallenge
public io.undertow.security.api.AuthenticationMechanism.ChallengeResult sendChallenge(io.undertow.server.HttpServerExchange exchange, io.undertow.security.api.SecurityContext securityContext) - Specified by:
sendChallengein interfaceio.undertow.security.api.AuthenticationMechanism- Overrides:
sendChallengein classio.undertow.security.impl.BasicAuthenticationMechanism
-