diff --git a/adapters/oidc/adapter-core/src/main/java/org/keycloak/adapters/QueryParamterTokenRequestAuthenticator.java b/adapters/oidc/adapter-core/src/main/java/org/keycloak/adapters/QueryParameterTokenRequestAuthenticator.java similarity index 82% rename from adapters/oidc/adapter-core/src/main/java/org/keycloak/adapters/QueryParamterTokenRequestAuthenticator.java rename to adapters/oidc/adapter-core/src/main/java/org/keycloak/adapters/QueryParameterTokenRequestAuthenticator.java index d2cabb3d75..233bc09a0f 100644 --- a/adapters/oidc/adapter-core/src/main/java/org/keycloak/adapters/QueryParamterTokenRequestAuthenticator.java +++ b/adapters/oidc/adapter-core/src/main/java/org/keycloak/adapters/QueryParameterTokenRequestAuthenticator.java @@ -26,11 +26,11 @@ import org.keycloak.adapters.spi.HttpFacade; * @author John D. Ament * @version $Revision: 1 $ */ -public class QueryParamterTokenRequestAuthenticator extends BearerTokenRequestAuthenticator { +public class QueryParameterTokenRequestAuthenticator extends BearerTokenRequestAuthenticator { public static final String ACCESS_TOKEN = "access_token"; - protected Logger log = Logger.getLogger(QueryParamterTokenRequestAuthenticator.class); + protected Logger log = Logger.getLogger(QueryParameterTokenRequestAuthenticator.class); - public QueryParamterTokenRequestAuthenticator(KeycloakDeployment deployment) { + public QueryParameterTokenRequestAuthenticator(KeycloakDeployment deployment) { super(deployment); } @@ -39,7 +39,7 @@ public class QueryParamterTokenRequestAuthenticator extends BearerTokenRequestAu return AuthOutcome.NOT_ATTEMPTED; } tokenString = null; - tokenString = getAccessTokenFromQueryParamter(exchange); + tokenString = getAccessTokenFromQueryParameter(exchange); if (tokenString == null || tokenString.trim().isEmpty()) { challenge = challengeResponse(exchange, OIDCAuthenticationError.Reason.NO_QUERY_PARAMETER_ACCESS_TOKEN, null, null); return AuthOutcome.NOT_ATTEMPTED; @@ -47,7 +47,7 @@ public class QueryParamterTokenRequestAuthenticator extends BearerTokenRequestAu return (authenticateToken(exchange, tokenString)); } - String getAccessTokenFromQueryParamter(HttpFacade exchange) { + String getAccessTokenFromQueryParameter(HttpFacade exchange) { try { if (exchange != null && exchange.getRequest() != null) { return exchange.getRequest().getQueryParamValue(ACCESS_TOKEN); diff --git a/adapters/oidc/adapter-core/src/main/java/org/keycloak/adapters/RequestAuthenticator.java b/adapters/oidc/adapter-core/src/main/java/org/keycloak/adapters/RequestAuthenticator.java index 23938a5d97..ae71fae438 100755 --- a/adapters/oidc/adapter-core/src/main/java/org/keycloak/adapters/RequestAuthenticator.java +++ b/adapters/oidc/adapter-core/src/main/java/org/keycloak/adapters/RequestAuthenticator.java @@ -76,9 +76,9 @@ public abstract class RequestAuthenticator { return AuthOutcome.AUTHENTICATED; } - QueryParamterTokenRequestAuthenticator queryParamAuth = createQueryParamterTokenRequestAuthenticator(); + QueryParameterTokenRequestAuthenticator queryParamAuth = createQueryParameterTokenRequestAuthenticator(); if (log.isTraceEnabled()) { - log.trace("try query paramter auth"); + log.trace("try query parameter auth"); } outcome = queryParamAuth.authenticate(facade); @@ -207,8 +207,8 @@ public abstract class RequestAuthenticator { return new BasicAuthRequestAuthenticator(deployment); } - protected QueryParamterTokenRequestAuthenticator createQueryParamterTokenRequestAuthenticator() { - return new QueryParamterTokenRequestAuthenticator(deployment); + protected QueryParameterTokenRequestAuthenticator createQueryParameterTokenRequestAuthenticator() { + return new QueryParameterTokenRequestAuthenticator(deployment); } protected void completeAuthentication(OAuthRequestAuthenticator oauth) {