mirror of https://github.com/apache/cloudstack.git
SAMLUtils: SAML user id should fit within the UUID VARCHAR(40) column
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
cd52bed477
commit
6df0b9f677
|
|
@ -102,7 +102,8 @@ public class SAMLUtils {
|
|||
public static final String CERTIFICATE_NAME = "SAMLSP_CERTIFICATE";
|
||||
|
||||
public static String createSAMLId(String uid) {
|
||||
return SAML_NS + uid;
|
||||
String samlUuid = SAML_NS + uid;
|
||||
return samlUuid.length() > 40 ? samlUuid.substring(0, 40) : samlUuid;
|
||||
}
|
||||
|
||||
public static Boolean checkSAMLUserId(String uuid) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue