mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
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…
x
Reference in New Issue
Block a user