Skip to content
This repository has been archived by the owner on Oct 5, 2021. It is now read-only.

Commit

Permalink
Merge pull request #428 from nuwand/release-4.2.6
Browse files Browse the repository at this point in the history
Fixing APIMANAGER-3868
  • Loading branch information
nuwand committed Jun 12, 2015
2 parents 2cb1046 + decfe70 commit ff297c6
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ public Response issueAccessToken(@Context HttpServletRequest request,
return handleBasicAuthFailure();
}

//If a client sends an invalid base64 encoded clientid:clientsecret value, it results in this
//array to only contain 1 element. This happens on specific errors though.
if(clientCredentials == null || clientCredentials.length < 2){
return handleBasicAuthFailure();
}
// add the credentials available in Authorization header to the parameter map
paramMap.add(OAuth.OAUTH_CLIENT_ID, clientCredentials[0]);
paramMap.add(OAuth.OAUTH_CLIENT_SECRET, clientCredentials[1]);
Expand Down

0 comments on commit ff297c6

Please sign in to comment.