mirror of
https://github.com/ysoftdevs/oauth-playground-server.git
synced 2026-03-31 14:23:12 +02: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) {
|
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