mirror of
https://github.com/ysoftdevs/oauth-playground-server.git
synced 2026-01-11 14:30:48 +01:00
accept any secret for open clients
This commit is contained in:
@@ -9,6 +9,7 @@ public record OAuthClient(String clientId, String description, String clientSecr
|
||||
}
|
||||
|
||||
public boolean validateSecret(String clientSecret) {
|
||||
return Objects.equals(clientSecret, this.clientSecret);
|
||||
// WARN: For open clients we purposefully accept any secrets
|
||||
return this.clientSecret == null || Objects.equals(clientSecret, this.clientSecret);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user