How to assign a custom principal with a custom soap extension

M

Michael

I have created a custom soap extension. What I need to do next is
assign my own custom principal to the current request context so that
the application receiving the request can simply access the identity
object and perform authorization checks.

How can I assign the custom principal.identity during the
ProcessMessage call into my custom soap extension?

Is the Processmessage call the right place to do this??

TIA,
Michael
 
M

Manuj Aggarwal

Any reason not to use use WS-Security and custom PasswordProvider to
authenticate the user.

In your custom PasswordProvider provide class - you could set the security
principal in GetPassword method. In this way you can handle Authentication
and Authorization in the same place neatly.

HTH

Manuj
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,571
Members
45,045
Latest member
DRCM

Latest Threads

Top