feat: support ha partial config
All checks were successful
Deploy Production Server / if_merged (pull_request) Successful in 6m52s
All checks were successful
Deploy Production Server / if_merged (pull_request) Successful in 6m52s
This commit is contained in:
parent
f98f1bd1ac
commit
0ab0731ebd
@ -25,7 +25,8 @@ public class HelloAssoTokenService {
|
|||||||
|
|
||||||
// Récupère un token valide (en le rafraîchissant si nécessaire)
|
// Récupère un token valide (en le rafraîchissant si nécessaire)
|
||||||
public Uni<String> getValidAccessToken() {
|
public Uni<String> getValidAccessToken() {
|
||||||
if (clientId == null || clientSecret == null || clientId.isEmpty() || clientSecret.isEmpty()) {
|
if (clientId == null || clientSecret == null || clientId.isEmpty() || clientSecret.isEmpty() || clientId.equalsIgnoreCase(
|
||||||
|
"null") || clientSecret.equalsIgnoreCase("null")) {
|
||||||
LOG.error("Client ID ou Client Secret non configuré pour HelloAsso");
|
LOG.error("Client ID ou Client Secret non configuré pour HelloAsso");
|
||||||
return Uni.createFrom().failure(new IllegalStateException("HelloAsso client credentials not configured"));
|
return Uni.createFrom().failure(new IllegalStateException("HelloAsso client credentials not configured"));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user