Skip to content

Commit cd52bed

Browse files
committed
saml: Use camelCase api names for SAML login/logout apis
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com> (cherry picked from commit 85c0bd68ae8a76c231ab402dd0311e3672155f71) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent b701061 commit cd52bed

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

client/tomcatconf/commands.properties.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ login=15
2323
logout=15
2424

2525
### SAML SSO/SLO commands
26-
samlsso=15
27-
samlslo=15
26+
samlSso=15
27+
samlSlo=15
2828
getSPMetadata=15
2929

3030
### Account commands

plugins/user-authenticators/saml2/src/org/apache/cloudstack/api/command/SAML2LoginAPIAuthenticatorCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
import java.util.List;
7474
import java.util.Map;
7575

76-
@APICommand(name = "samlsso", description = "SP initiated SAML Single Sign On", requestHasSensitiveInfo = true, responseObject = LoginCmdResponse.class, entityType = {})
76+
@APICommand(name = "samlSso", description = "SP initiated SAML Single Sign On", requestHasSensitiveInfo = true, responseObject = LoginCmdResponse.class, entityType = {})
7777
public class SAML2LoginAPIAuthenticatorCmd extends BaseCmd implements APIAuthenticator {
7878
public static final Logger s_logger = Logger.getLogger(SAML2LoginAPIAuthenticatorCmd.class.getName());
7979
private static final String s_name = "loginresponse";

plugins/user-authenticators/saml2/src/org/apache/cloudstack/api/command/SAML2LogoutAPIAuthenticatorCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
import java.util.List;
5252
import java.util.Map;
5353

54-
@APICommand(name = "samlslo", description = "SAML Global Log Out API", responseObject = LogoutCmdResponse.class, entityType = {})
54+
@APICommand(name = "samlSlo", description = "SAML Global Log Out API", responseObject = LogoutCmdResponse.class, entityType = {})
5555
public class SAML2LogoutAPIAuthenticatorCmd extends BaseCmd implements APIAuthenticator {
5656
public static final Logger s_logger = Logger.getLogger(SAML2LogoutAPIAuthenticatorCmd.class.getName());
5757
private static final String s_name = "logoutresponse";

server/src/com/cloud/configuration/Config.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1423,15 +1423,15 @@ public enum Config {
14231423
ManagementServer.class,
14241424
String.class,
14251425
"saml2.sp.sso.url",
1426-
"http://localhost:8080/client/api?command=samlsso",
1426+
"http://localhost:8080/client/api?command=samlSso",
14271427
"SAML2 CloudStack Service Provider Single Sign On URL",
14281428
null),
14291429
SAMLServiceProviderSingleLogOutURL(
14301430
"Advanced",
14311431
ManagementServer.class,
14321432
String.class,
14331433
"saml2.sp.slo.url",
1434-
"http://localhost:8080/client/api?command=samlslo",
1434+
"http://localhost:8080/client/api?command=samlSlo",
14351435
"SAML2 CloudStack Service Provider Single Log Out URL",
14361436
null),
14371437
SAMLIdentityProviderID(

0 commit comments

Comments
 (0)