Skip to content

Commit

Permalink
c1
Browse files Browse the repository at this point in the history
  • Loading branch information
sbansla committed Sep 30, 2024
1 parent b521bb3 commit a07f8d4
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ public class ClientCredentialProvider extends CredentialProvider {

public ClientCredentialProvider(String clientId, String clientSecret) {
super(EnumConstants.AuthType.CLIENT_CREDENTIALS);
if (clientId == null) {
throw new AuthenticationException("Client can not be null");
}
if (clientId == null || clientSecret == null) {
throw new AuthenticationException("ClientId or ClientSecret can not be null");
}
Expand Down

0 comments on commit a07f8d4

Please sign in to comment.