Ask a Question related to ASP.NET Web Services, Design and Development.
-
Prajakta J. #1
Help Urgent, How to get hashed pwd in web service when send in username token as SendHashed
Hi,
I am sending username and pwd in usernametoken in SendHashed format,
While in web service, i am getting Nothing in that UsernameToken's
Password.
If send it as SendPlainText, then in my web service, i get a hashed pwd.
Why this is So?
How to get Hashed pwd stored in UsernamToken in web service?
My web service code is,
Try
If IsNothing(ctxt) Then
Throw New ApplicationException("Only SOAP requests are
permitted."
End If
flg = False
For Each tkn In RequestSoapContext.Current.Security.Tokens
If TypeOf tkn Is UsernameToken Then
Dim user As UsernameToken = CType(tkn, UsernameToken)
Dim pwd As String =
FormsAuthentication.HashPasswordForStoringInConfig File("Admin1", "SHA1")
If user.Password = pwd Then
flg = True
Return "Hello " & user.Username
End If
End If
Next
If flg = False Then
Return "Hello Liar"
End If
Catch ex As SoapException
Throw ex
Catch ex As Exception
Throw ex
End Try
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Prajakta J. Guest
-
Plz help urgent, prob when using SendHashed
Hi, I m sending Pwd in Send Hashed format as below, Dim token As UsernameToken = New UsernameToken("Admin", "Admin1",PasswordOption.SendHashed)... -
Send Username value to client page (clientnewstest1.asp?rmemeid=uName)
Hello, I am in desperate need of some help here. I need to pass my username (uName) value from this authorization code to my client page. When the... -
My web service prompts for username password
I have developed a web service and after deploying it on a Win2k server box with IIS, it starts throwing up the username password dialog. If I key... -
WSE - Username Token
Hello: I am trying to build a webservice and client that will pass a username and password in the SOAP header. However, when trying to call... -
Webservice over HTTPS. How to choose certicicate and send username nad password???
Webservice over HTTPS. How to choose certicicate and send username nad password??? Now i'm getting connection errors saying that the ssl...



Reply With Quote

