Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Retrieve user id from Siteminder smsession

Our system is a gateway interacting with Siteminder for authentication and connecting to back end systems. Siteminder is returning SMSESSION and SMIDENTITY in the header. How to retrieve the userid from SMSESSION. The format is as below: SMSESSION=dQtTYNjolqkVPoblyV2iUYzlaffxweO7jwHdbC8R8HCRzyuR2E6we22hBEdfOquw4Wx4V2Ly6tuTq7DctZXBpiUVOqYr1htSKExdDauUYD0Eh+jmdw9yBSSjkUm/nlDd6iFizN2zeyBAGda7jgHbyvKCB0T54ZrFFEMTd1jdJfiOJS0q6c

I have tried to take the encoded string manually and decode it but its not getting me the user id. How to get the userid from SMSESSION?

Thanks,

like image 799
user1860832 Avatar asked Feb 18 '23 06:02

user1860832


1 Answers

I believe SMSESSION cookie is encrypted by the agent, you won't be able to do much with it. You'll have to work with the external SiteMinder support team to ask them to add the SM_USER or other headers. It is a part of SiteMinder configuration.

like image 128
0leg Avatar answered May 12 '23 17:05

0leg