Skip to content

Commit

Permalink
Improve client builder checks (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
skjolber authored Feb 1, 2024
1 parent c735f71 commit 099db5c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,16 @@ public B withScope(String scope) {

protected ClientCredentials build(boolean authorizationHeader) {

if (clientId == null) {
if (clientId == null || clientId.isBlank()) {
throw new IllegalStateException("Expected client-id");
}
if (host == null) {
if (host == null || host.isBlank()) {
throw new IllegalStateException("Expected host");
}
if (issuePath == null) {
if (issuePath == null || issuePath.isBlank()) {
throw new IllegalStateException("Expected issue (token) path");
}
if (secret == null) {
if (secret == null || secret.isBlank()) {
throw new IllegalStateException("Expected secret");
}

Expand Down

0 comments on commit 099db5c

Please sign in to comment.