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.
swlinn 100000E7QE1397 Posts
Re: BinarySecurity authentication2013-01-07T14:51:35ZThis is the accepted answer. This is the accepted answer.The 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?