diff --git a/modules/core/src/main/java/org/apache/synapse/deployers/HTTPConnectionRepresentation.java b/modules/core/src/main/java/org/apache/synapse/deployers/HTTPConnectionRepresentation.java index de6c54a03e..6ebd04295e 100644 --- a/modules/core/src/main/java/org/apache/synapse/deployers/HTTPConnectionRepresentation.java +++ b/modules/core/src/main/java/org/apache/synapse/deployers/HTTPConnectionRepresentation.java @@ -320,7 +320,7 @@ public OMElement generateEndpointOMElement() { OMElement authentication = factory.createOMElement(SynapseConstants.AUTHENTICATION, synapseNS); OMElement oauth = factory.createOMElement(SynapseConstants.OAUTH_TAG, synapseNS); if (oauthGrantType.equalsIgnoreCase(SynapseConstants.OAUTH_GRANT_TYPE_AUTHORIZATION_CODE)) { - OMElement authorizationCode = generateOAuthAuthorizatonCodeElement(factory, synapseNS); + OMElement authorizationCode = generateOAuthAuthorizationCodeElement(factory, synapseNS); oauth.addChild(authorizationCode); authentication.addChild(oauth); http.addChild(authentication); @@ -412,7 +412,7 @@ private OMElement generateOAuthClientCredentialsElement(OMFactory factory, OMNam return clientCredentials; } - private OMElement generateOAuthAuthorizatonCodeElement(OMFactory factory, OMNamespace synapseNS) { + private OMElement generateOAuthAuthorizationCodeElement(OMFactory factory, OMNamespace synapseNS) { OMElement authorizationCode = factory.createOMElement(SynapseConstants.AUTHORIZATION_CODE, synapseNS);