209 BearerTokenRequestAuthenticator authenticator =
new BearerTokenRequestAuthenticator(resolvedDeployment);
210 AuthOutcome outcome = authenticator.authenticate(facade);
212 if (outcome == AuthOutcome.NOT_ATTEMPTED && resolvedDeployment.isEnableBasicAuth()) {
213 authenticator =
new BasicAuthRequestAuthenticator(resolvedDeployment);
214 outcome = authenticator.authenticate(facade);
217 if (outcome == AuthOutcome.FAILED || outcome == AuthOutcome.NOT_ATTEMPTED) {
218 AuthChallenge challenge = authenticator.getChallenge();
219 log.fine(
"Authentication outcome: " + outcome);
220 boolean challengeSent = challenge.challenge(facade);
221 if (!challengeSent) {
223 facade.getResponse().setStatus(Response.Status.UNAUTHORIZED.getStatusCode());
227 if (!facade.isResponseFinished()) {
228 facade.getResponse().end();
boolean verifySslFailed(JaxrsHttpFacade facade, KeycloakDeployment deployment)
Definition: JaxrsBearerTokenFilterImpl.java:278
void handleAuthActions(JaxrsHttpFacade facade, KeycloakDeployment deployment)
Definition: JaxrsBearerTokenFilterImpl.java:291
static final Logger log
Definition: JaxrsBearerTokenFilterImpl.java:60
void propagateSecurityContext(JaxrsHttpFacade facade, ContainerRequestContext request, KeycloakDeployment resolvedDeployment, BearerTokenRequestAuthenticator bearer)
Definition: JaxrsBearerTokenFilterImpl.java:241