mirror of
https://github.com/ysoftdevs/oauth-playground-server.git
synced 2026-11-13 12:33:38 +01:00
accept any secret for open clients
This commit is contained in:
1 parent
a57f40e0a4
commit
b4e19944af
1 file changed
+2
-1
@@ -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