E
Ed Staffin
When my users log into my web app they do it using Windows auth.
Now, when they do something that needs to call our WebService that updates
WSS, one of the things we are currently doing in the constructor of the
service is:
Public Sub New()
MyBase.New()
m_Svc = New MySvc
m_Svc.Credentials = CredentialCache.DefaultCredentials
End Sub
The problem with this is that I believe the DefaultCredential is not that of
my logged in user.
So, the question of the moment is, how do I translate User.Identity or User
or whatever it is off the User object, into a variable that I can assign to
m_Svc.Credentials?
In other words, what I kinda want to do is:
Public Sub New(c as System.Net.ICredentials )
MyBase.New()
m_Svc = New MySvc
m_Svc.Credentials = c
End Sub
So, when I create my object it goes something like:
Dim oUser As New EkWssComWrapper.EkWssProjectUser(User.Identity.????)
Thanks ... Ed
What do I pass here?
Now, when they do something that needs to call our WebService that updates
WSS, one of the things we are currently doing in the constructor of the
service is:
Public Sub New()
MyBase.New()
m_Svc = New MySvc
m_Svc.Credentials = CredentialCache.DefaultCredentials
End Sub
The problem with this is that I believe the DefaultCredential is not that of
my logged in user.
So, the question of the moment is, how do I translate User.Identity or User
or whatever it is off the User object, into a variable that I can assign to
m_Svc.Credentials?
In other words, what I kinda want to do is:
Public Sub New(c as System.Net.ICredentials )
MyBase.New()
m_Svc = New MySvc
m_Svc.Credentials = c
End Sub
So, when I create my object it goes something like:
Dim oUser As New EkWssComWrapper.EkWssProjectUser(User.Identity.????)
Thanks ... Ed
What do I pass here?