Skip to content

Commit

Permalink
cred: fix basicIdentityManager.getSecurityMethods()
Browse files Browse the repository at this point in the history
  • Loading branch information
pdowler committed Aug 28, 2024
1 parent 8a58789 commit 671587e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;
import java.util.TreeSet;
import javax.security.auth.Subject;
import org.apache.log4j.Logger;

Expand Down Expand Up @@ -124,7 +125,10 @@ public BasicAuthIdentityManager() {

@Override
public Set<URI> getSecurityMethods() {
return origIM.getSecurityMethods();
Set<URI> ret = new TreeSet<>();
ret.addAll(origIM.getSecurityMethods());
ret.add(Standards.SECURITY_METHOD_HTTP_BASIC);
return ret;
}

@Override
Expand Down

0 comments on commit 671587e

Please sign in to comment.