IC5Notice: We have upgraded developerWorks Community to the latest version of IBM Connections. For more information, read our upgrade FAQ.
Topic
  • 1 reply
  • Latest Post - ‏2012-11-13T04:45:34Z by SystemAdmin
Arnab_Ghosh
Arnab_Ghosh
94 Posts

Pinned topic Get username from BinarySecurityToken

‏2012-11-12T18:56:42Z |
HI,
I am doing Authentication using BinarySecurityToken. After that I want to check if the user is authorized but from the certificate how can I get the user name so that I can check the Authorization? How is it usually done?

var://context/WSM/identity/authenticated-user encoded string
var://context/WSM/identity/credentials encoded string
var://context/WSM/identity/username empty string

These are all i get from the context

Thanks,
Arnab
Updated on 2012-11-13T04:45:34Z at 2012-11-13T04:45:34Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    6772 Posts

    Re: Get username from BinarySecurityToken

    ‏2012-11-13T04:45:34Z  
    You might consider one of the crypto extension functions. A good start would be dp:auth-info().