Web service authentication using CA siteminder in a winform application

I don't have much experience with CA sitemider

, so please bear with me if I'm asking a stupid question.

I am creating excel add-in

which uses win-forms

for the interface. I have added a web link for web-service

which I need to call to perform the operation. The web service supports SAML authentication

. So my requirement is: I need to verify the user from Active Directory

with a CA sitemider

and get token

(like an access token or an authentication token) and then pass it to a web service.

I'm not sure how to implement this? What should I do to get this token and also do I need to use a web browser control in winform to implement the validation flow siteminder

?

+3


source to share


1 answer


Check out the System.IdentityModel namespace for this, you can implement it through the Windows Identity framework. The namespace has validators for SAML1 / 2 tokens. In order to request a valid SAML token and pass it to your web service, you may need to configure an interface that can receive the token first. As Siteminder submits the token just like other identity providers, the user must be a valid IDP user (Siteminder in this case), as soon as the request is sent to Siteminder, it shows its login page, and as soon as the user logs on the server return SAML (try using the firefox SAML parser extension to see what the token looks like when it is returned). You can retrieve the token into your interface afterhow the request is sent back to your side from Siteminder, then validate it (if necessary) and submit it to your webservice.



0


source







All Articles