Skip to content

Commit a0270e1

Browse files
author
joel.tazzari
committed
Change error message
1 parent 3d037ab commit a0270e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/user-authenticators/oauth2/src/main/java/org/apache/cloudstack/oauth2/api/command/RegisterOAuthProviderCmd.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ public Map getDetails() {
116116
public void execute() throws ServerApiException, ConcurrentOperationException, EntityExistsException {
117117
if (StringUtils.equals("keycloak", getProvider())) {
118118
if (getAuthorizeUrl() == null || "".equals(getAuthorizeUrl())) {
119-
throw new ServerApiException(ApiErrorCode.BAD_REQUEST, "authorizationurl parameter is mandatory for custom OAuth Provider");
119+
throw new ServerApiException(ApiErrorCode.BAD_REQUEST, "Parameter authorizationurl is mandatory for keycloak OAuth Provider");
120120
}
121121
if (getTokenUrl() == null || "".equals(getTokenUrl())) {
122-
throw new ServerApiException(ApiErrorCode.BAD_REQUEST, "tokenurl parameter is mandatory for custom OAuth Provider");
122+
throw new ServerApiException(ApiErrorCode.BAD_REQUEST, "Parameter tokenurl is mandatory for keycloak OAuth Provider");
123123
}
124124
}
125125

0 commit comments

Comments
 (0)