Skip to content

Commit

Permalink
fail silently when token type is missing if there is no crypto payload.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin Duda committed May 1, 2018
1 parent 0f9ac03 commit 4b5c209
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'maven'

project.version = "1.0.34-SNAPSHOT"
project.version = "1.0.35-SNAPSHOT"
project.group = 'com.github.codingchili.chili-core'

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ public boolean verify(Token token) {
.send(String.format("Token algorithm '%s' - not enabled/trusted.", algorithm));
return false;
}
} else {
// only log an error if the token is secured and type is missing.
} else if (token.getKey() != null) {
logger.event("token.verify", Level.WARNING)
.send(String.format("Token is missing property '%s' - unable to verify.", CRYPTO_TYPE));
}
Expand Down

0 comments on commit 4b5c209

Please sign in to comment.