Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cred/VERSION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## deployable containers have a semantic and build tag
# semantic version tag: major.minor
# build version tag: timestamp
VER=2.0.2
VER=2.0.3
TAGS="${VER} ${VER}-$(date -u +"%Y%m%dT%H%M%S")"
unset VER
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,12 @@ public Subject validate(Subject subject) throws AccessControlException {
Base64.Decoder dec = Base64.getDecoder();
byte[] b = dec.decode(ss[1]);
String creds = new String(b); // default charset
String[] up = creds.split(":");
username = up[0];
password = up[1];
int colonIndex = creds.indexOf(":");
if (colonIndex < 1) {
throw new NotAuthenticatedException("Incorrect user/password input in basic auth challenge");
}
username = creds.substring(0, colonIndex);
password = creds.substring(colonIndex + 1);
}
if (username != null && password != null) {
LocalAuthority loc = new LocalAuthority();
Expand Down