I am doing Authentication using BinarySecurityToken. After that I want to get the user details from the certificate against which the user has been authenticated true. How is it usually done? var://context/WSM/identity/authenticated-user has some encoded string but this is not the cn mentioned in the certificate.
This topic has been locked.
2 replies Latest Post - 2013-01-07T23:59:43Z by Arnab_Ghosh
Pinned topic BinarySecurity authentication
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2013-01-07T23:59:43Z at 2013-01-07T23:59:43Z by Arnab_Ghosh
swlinn 100000E7QE1344 PostsACCEPTED ANSWER
Re: BinarySecurity authentication2013-01-07T14:51:35Z in response to Arnab_GhoshThe wsse:BinarySecurityToken supports both X.509 certificate and a LTPA token, specified by the ValueType attribute. I'm assuming you have a X.509 certificate, so if you are doing this in a stylesheet, you should be able to get this value from your document and use
I'm not sure if the X.509 certificate is base-64 encoded, so you may need to do the dp:decode extension function as well. get-cert-details returns a node set with all of the certificate attributes. You may also use a different extension function to get a specific attribute, for example, dp:get-cert-subject. My guess is that the WSM context variable has the BinarySecurityToken value, true?