From a0270e141ba145cc6298b276daa6ff284111dcd4 Mon Sep 17 00:00:00 2001 From: "joel.tazzari" Date: Wed, 15 Apr 2026 20:28:34 +0200 Subject: [PATCH] Change error message --- .../oauth2/api/command/RegisterOAuthProviderCmd.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/user-authenticators/oauth2/src/main/java/org/apache/cloudstack/oauth2/api/command/RegisterOAuthProviderCmd.java b/plugins/user-authenticators/oauth2/src/main/java/org/apache/cloudstack/oauth2/api/command/RegisterOAuthProviderCmd.java index 534d6f7ca2a..96fce48b7a9 100644 --- a/plugins/user-authenticators/oauth2/src/main/java/org/apache/cloudstack/oauth2/api/command/RegisterOAuthProviderCmd.java +++ b/plugins/user-authenticators/oauth2/src/main/java/org/apache/cloudstack/oauth2/api/command/RegisterOAuthProviderCmd.java @@ -116,10 +116,10 @@ public class RegisterOAuthProviderCmd extends BaseCmd { public void execute() throws ServerApiException, ConcurrentOperationException, EntityExistsException { if (StringUtils.equals("keycloak", getProvider())) { if (getAuthorizeUrl() == null || "".equals(getAuthorizeUrl())) { - throw new ServerApiException(ApiErrorCode.BAD_REQUEST, "authorizationurl parameter is mandatory for custom OAuth Provider"); + throw new ServerApiException(ApiErrorCode.BAD_REQUEST, "Parameter authorizationurl is mandatory for keycloak OAuth Provider"); } if (getTokenUrl() == null || "".equals(getTokenUrl())) { - throw new ServerApiException(ApiErrorCode.BAD_REQUEST, "tokenurl parameter is mandatory for custom OAuth Provider"); + throw new ServerApiException(ApiErrorCode.BAD_REQUEST, "Parameter tokenurl is mandatory for keycloak OAuth Provider"); } }