Committing logic that stores BST within request metadata

revert-70aa11f8
prabathabey 9 years ago
parent ed8242fc66
commit 7e65b837d1

@ -130,7 +130,7 @@ public class BSTAuthenticator implements WebappAuthenticator {
authenticationInfo.setStatus(WebappAuthenticator.Status.CONTINUE); authenticationInfo.setStatus(WebappAuthenticator.Status.CONTINUE);
} else { } else {
String bearerToken = request.getContext().findParameter("BST"); String bearerToken = request.getAttribute("BST").toString();
String resource = requestUri + ":" + requestMethod; String resource = requestUri + ":" + requestMethod;
@ -196,7 +196,7 @@ public class BSTAuthenticator implements WebappAuthenticator {
if (bstHeader == null || bstHeader.isEmpty()) { if (bstHeader == null || bstHeader.isEmpty()) {
return false; return false;
} }
request.getContext().addParameter("BST", bstHeader); request.setAttribute("BST", bstHeader);
return true; return true;
} }

Loading…
Cancel
Save