Skip to content

Commit

Permalink
Fixing REST auth handler
Browse files Browse the repository at this point in the history
  • Loading branch information
semancik committed Mar 26, 2015
1 parent 9e72f71 commit b3df3ed
Show file tree
Hide file tree
Showing 4 changed files with 199 additions and 178 deletions.
Expand Up @@ -79,12 +79,14 @@ public void handleRequest(Message m, ContainerRequestContext requestCtx) {

if (policy == null){
requestCtx.abortWith(Response.status(401).header("WWW-Authenticate", "Basic").build());
return;
}

String username = policy.getUserName();

if (username == null){
requestCtx.abortWith(Response.status(401).header("WWW-Authenticate", "Basic").build());
return;
}


Expand Down

0 comments on commit b3df3ed

Please sign in to comment.