|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
wcf and UserNamePasswordValidatorHello,
how can I get the username and password in a method? When I call a method like Login or ValidateUser, I have to read the current username and password for checking with UsersDatabase. I can't check in the Validate-Method of UserNamePasswordValidator because I havn't all information about UsersDatabase-Connection at this time. How can I store the Username and Password after the Validate-Method and read again in my Method. Thanks for helping. Regards Ivan Ivan,
You won't get the password, the user you can get with The My.User.Name Maybe you can use more of this. http://msdn.microsoft.com/en-us/library/ms172992(VS.80).aspx Cor Hello Cor
Thanks for your answer. I don't understand this UserNamePasswordValidator-Thing. I would like to check the username and password with UserNamePasswordValidator and the validate-method. User names and passwords are stored in my sqlDatabase. When I don't have all Information for the connection to the Database in the Validate-Method, it isn't possible to check the user? I would like to check the username and the password in a method like Private sub Login(byref mySqlDBConnectionProperties ..) 'Get the username and password of the UserNamePasswordValidator 'Connect to database and check the user end sub Could you explain how to do this in practise? Are there different methods to do this? Could you let me know the most used method to check the user with my own sql database. Thank you very much. Best regards. Ivan Show quoteHide quote "Cor Ligthert[MVP]" wrote: > Ivan, > > You won't get the password, the user you can get with > > The My.User.Name > > Maybe you can use more of this. > > http://msdn.microsoft.com/en-us/library/ms172992(VS.80).aspx > > Cor >
copying folders
error when updating Listview after record add Can you edit auto generated Partial Class Designer VB code? create reference number based on old one... Send Email Using VB 2008 Express Detecting Design Time vs Run Time Property Set action Vb.net[2008] Combo box population from text file (40,000 lines!) Radio buttond and combo boxes Running App in design environment is very slow BigInteger and BigDecimal [equivalents] for VB.NET? |
|||||||||||||||||||||||