c# Programming Glossary: username
How to secure an ASP.NET Web API http://stackoverflow.com/questions/11775594/how-to-secure-an-asp-net-web-api Agent agent Host host Timestamp timestamp Authentication username signature Example for GET request GET webapi.hmac api values.. on the server. The secret key is got from database with username on the request. Then server code compares the signature on the..
How do you do Impersonation in .NET? http://stackoverflow.com/questions/125341/how-do-you-do-impersonation-in-net do it by using .NET Framework I have a user credential set username password domain name which represents the identity I need to..
How do you programmatically fill in a form and 'POST' a web page? http://stackoverflow.com/questions/26857/how-do-you-programmatically-fill-in-a-form-and-post-a-web-page is a service www.stopforumspam.com where you can submit ip username and email address on their 'add' page. I want to be able to..
How do I create a custom membership provider for ASP.NET MVC 2? http://stackoverflow.com/questions/2771094/how-do-i-create-a-custom-membership-provider-for-asp-net-mvc-2 public override bool ValidateUser string username string password this is where you should validate your user.. new MyUserProvider return oUserProvider.ValidateUser username password CurrentTerritoryID Then I connected that provider.. method public override string GetRolesForUser string username SpHelper db new SpHelper DataTable roleNames null try get roles..
Validate a username and password against Active Directory? http://stackoverflow.com/questions/290548/validate-a-username-and-password-against-active-directory a username and password against Active Directory How can I validate a.. password against Active Directory How can I validate a username and password against Active Directory I simply want to check.. against Active Directory I simply want to check if a username and password are correct. c# authentication active directory..
Breaking out of a nested loop http://stackoverflow.com/questions/324831/breaking-out-of-a-nested-loop fundamental. Because of that tvon sorry can't spell full username has a nice solution. Marc Nice use of anon methods and this..
C# Service cannot execute batch file? http://stackoverflow.com/questions/361097/c-sharp-service-cannot-execute-batch-file not help the situation. I put back null for password and username of the service. Update #4 I have create a simple service that..
HTTP request with post http://stackoverflow.com/questions/4015324/http-request-with-post var wb new WebClient var data new NameValueCollection data username myUser data password myPassword var response wb.UploadValues..
Read Post Data submitted to ASP.Net Form http://stackoverflow.com/questions/564289/read-post-data-submitted-to-asp-net-form form in an asp.net application. Standard stuff with a username and password text box and a button to process the login. Works.. I have a new requirement to allow the user to input the username and password from a separate plain html page that is not a part.. event is to check if the request for the page contains a username and password value being passed in. If it does then I need to..
Accessing a Shared File (UNC) From a Remote, Non-Trusted Domain With Credentials http://stackoverflow.com/questions/659013/accessing-a-shared-file-unc-from-a-remote-non-trusted-domain-with-credentials is not on the same domain and even if it has a different username and password. Once you have used WNetUseConnection you will..
Understanding WCF Windows Authentication http://stackoverflow.com/questions/9588265/understanding-wcf-windows-authentication can be compared to a Membership provider providing username and password from a centralized location. It can be compared..
Storing more information using FormsAuthentication.SetAuthCookie http://stackoverflow.com/questions/1149996/storing-more-information-using-formsauthentication-setauthcookie cookie for a login. FormsAuthentication.SetAuthCookie UserName True I want to store more information in the same cookie. Can..
How to create custom additional fields in UserProfile in MVC4 http://stackoverflow.com/questions/12435252/how-to-create-custom-additional-fields-in-userprofile-in-mvc4 DefaultConnection UserProfile UserId UserName autoCreateTables true and user profile table Table UserProfile.. public int UserId get set public string UserName get set But the method InitializeDatabaseConnection generate.. But the method InitializeDatabaseConnection generate only UserName and UserId i need to generate other additional fields. I have..
Named string formatting in C# http://stackoverflow.com/questions/159017/named-string-formatting-in-c-sharp bar and yadi is yada .Inject o Here's another Status.Text UserName last logged in at LastLoginDate .FormatWith user A third improved..
How can I upload a file and save it to a Stream for further preview using C#? http://stackoverflow.com/questions/1653469/how-can-i-upload-a-file-and-save-it-to-a-stream-for-further-preview-using-c ID new PdfDoc files.Files 0 new User UserName User.Identity.Name catch ServiceExceptions.KsisServiceException..
How to create “embedded” SQL 2008 database file if it doesn't exist? http://stackoverflow.com/questions/1715691/how-to-create-embedded-sql-2008-database-file-if-it-doesnt-exist tinyint NOT NULL DateCreated smalldatetime NOT NULL UserName nvarchar 100 NOT NULL ALTER TABLE AuditUser ADD CONSTRAINT PK_AuditUser..
Sharepoint web services — The HTTP request is unauthorized with client authentication scheme 'Ntlm'. The authentication header received from the server was 'NTLM' http://stackoverflow.com/questions/2608887/sharepoint-web-services-the-http-request-is-unauthorized-with-client-authenti None realm message clientCredentialType UserName algorithmSuite Default security To security mode TransportCredentialOnly..
Error in WCF client consuming Axis 2 web service with WS-Security UsernameToken PasswordDigest authentication scheme http://stackoverflow.com/questions/3102693/error-in-wcf-client-consuming-axis-2-web-service-with-ws-security-usernametoken new RemoteServicePortTypeClient client.ClientCredentials.UserName.UserName JAY client.ClientCredentials.UserName.Password AND.. client.ClientCredentials.UserName.UserName JAY client.ClientCredentials.UserName.Password AND what is the.. JAY client.ClientCredentials.UserName.Password AND what is the difference between the two different..
Best Free Controls for .NET [closed] http://stackoverflow.com/questions/361271/best-free-controls-for-net Control Kit CKEditor previously known as FckEditor TinyMCE UserName Availability Control Webforms Security Kit Animation Loading..
Show Authentication dialog in C# for windows Vista/7 http://stackoverflow.com/questions/4134882/show-authentication-dialog-in-c-sharp-for-windows-vista-7 pAuthBuffer uint cbAuthBuffer StringBuilder pszUserName ref int pcchMaxUserName StringBuilder pszDomainName.. StringBuilder pszUserName ref int pcchMaxUserName StringBuilder pszDomainName ref int pcchMaxDomainame.. 100 var domainBuf new StringBuilder 100 int maxUserName 100 int maxDomain 100 int maxPassword 100 if result 0 if CredUnPackAuthenticationBuffer..
Cookie Confusion with FormsAuthentication.SetAuthCookie() Method http://stackoverflow.com/questions/4939533/cookie-confusion-with-formsauthentication-setauthcookie-method _ New System.Web.Security.FormsAuthenticationTicket _ 1 _ UserName _ Now _ Now.AddYears 100 _ createPersistentCookie _ UserData.. authTicket.UserData.ToString End If CookieUserData.UserName authTicket.Name End If Catch ex As Exception ' Do nothing. End..
WCF Transport vs Message http://stackoverflow.com/questions/5673283/wcf-transport-vs-message for encryption signing token transport timestamps etc. UserName token profile 1.0 definition of token used for transporting..
Best practice for saving sensitive data in Windows 8 http://stackoverflow.com/questions/9052482/best-practice-for-saving-sensitive-data-in-windows-8 null const string VAULT_RESOURCE My App Credentials string UserName get set string Password get set var vault new PasswordVault.. VAULT_RESOURCE .FirstOrDefault if creds null UserName creds.UserName Password vault.Retrieve VAULT_RESOURCE UserName.. .FirstOrDefault if creds null UserName creds.UserName Password vault.Retrieve VAULT_RESOURCE UserName .Password catch..
How do I get the current username in .NET using C#? http://stackoverflow.com/questions/1240373/how-do-i-get-the-current-username-in-net-using-c using C# c# .net share improve this question string userName System.Security.Principal.WindowsIdentity.GetCurrent .Name ..
How to restore a database from C# http://stackoverflow.com/questions/1466651/how-to-restore-a-database-from-c-sharp databaseName String backUpFile String serverName String userName String password Restore sqlRestore new Restore BackupDeviceItem.. connection new ServerConnection serverName userName password Server sqlServer new Server connection sqlRestore.Action.. public string GetDBFilePath String databaseName String userName String password String serverName ServerConnection connection..
Accessing Password Protected Network Drives in Windows in C#? http://stackoverflow.com/questions/2563724/accessing-password-protected-network-drives-in-windows-in-c Delegation 3 summary Logs on the user. summary param name userName Name of the user. param param name domain The domain. param.. internal static extern bool LogonUser string userName string domain string password LogonType logonType LogonProvider.. followed by IntPtr token if NativeMethods.LogonUser this.userName this.domain this.password NativeMethods.LogonType.NewCredentials..
Will using LINQ to SQL help prevent SQL injection http://stackoverflow.com/questions/473173/will-using-linq-to-sql-help-prevent-sql-injection Session tempMemberSSN_Registration profile.UserName userName profile.Password password profile.EmailAddress email profile.QuestionID..
Cookie Confusion with FormsAuthentication.SetAuthCookie() Method http://stackoverflow.com/questions/4939533/cookie-confusion-with-formsauthentication-setauthcookie-method authTicket new FormsAuthenticationTicket 1 version userName user name DateTime.Now creation DateTime.Now.AddMinutes 30 Expiration..
Read Post Data submitted to ASP.Net Form http://stackoverflow.com/questions/564289/read-post-data-submitted-to-asp-net-form accordingly NameValueCollection nvc Request.Form string userName password if string.IsNullOrEmpty nvc txtUserName userName nvc.. userName password if string.IsNullOrEmpty nvc txtUserName userName nvc txtUserName if string.IsNullOrEmpty nvc txtPassword password.. password nvc txtPassword Process login CheckLogin userName password ... where txtUserName and txtPassword are the Names..
using parameters inserting data into access database http://stackoverflow.com/questions/5893837/using-parameters-inserting-data-into-access-database string title int rating string review string ISBN string userName OleDbConnection conn conn new OleDbConnection @ Provider Microsoft.Jet.OleDb.4.0.. VALUES ' title ' ' rating ' ' review ' ' ISBN ' ' userName ' cmd.ExecuteNonQuery conn.Close From what I understand one.. string title int rating string review string ISBN string userName using OleDbConnection conn new OleDbConnection Provider Microsoft.Jet.OleDb.4.0..
Send Email via C# through Google Apps account http://stackoverflow.com/questions/757987/send-email-via-c-sharp-through-google-apps-account Network network host smtp.gmail.com port 587 userName example@domain.com password password smtp mailSettings system.net..
Generating HTML email body in C# http://stackoverflow.com/questions/886728/generating-html-email-body-in-c-sharp than using a Stringbuilder to do the following string userName John Doe StringBuilder mailBody new StringBuilder mailBody.AppendFormat.. h1 Heading Here h1 mailBody.AppendFormat Dear 0 userName mailBody.AppendFormat br mailBody.AppendFormat p First part..
Using JsonConvert.DeserializeObject to deserialize Json to a C# POCO class http://stackoverflow.com/questions/11126242/using-jsonconvert-deserializeobject-to-deserialize-json-to-a-c-sharp-poco-class eg sergiotapia mrkibbles matumbo summary public string Username get set summary A User's name. eg Sergio Tapia John Cosack Lucy.. matumbo summary JsonProperty username public string Username get set summary A User's name. eg Sergio Tapia John Cosack Lucy..
How to bind to a PasswordBox in MVVM http://stackoverflow.com/questions/1483892/how-to-bind-to-a-passwordbox-in-mvvm I basically have properties in my LoginViewModel for Username and Password . Username is fine and is working as it's a TextBox.. in my LoginViewModel for Username and Password . Username is fine and is working as it's a TextBox . I used the code above.. true it calls Login . You can see I check my property for Username here which works great. In Login I send along to my service..
GridView sorting: SortDirection always Ascending http://stackoverflow.com/questions/250037/gridview-sorting-sortdirection-always-ascending Status SortExpression Statusname asp BoundField DataField Username HeaderText User SortExpression Username Columns asp GridView.. DataField Username HeaderText User SortExpression Username Columns asp GridView The code behind is defined this way First..
Error in WCF client consuming Axis 2 web service with WS-Security UsernameToken PasswordDigest authentication scheme http://stackoverflow.com/questions/3102693/error-in-wcf-client-consuming-axis-2-web-service-with-ws-security-usernametoken WCF client consuming Axis 2 web service with WS Security UsernameToken PasswordDigest authentication scheme I have a WCF client.. and this . The SOAP message should look like this wsse UsernameToken wsse Username Removed wsse Username wsse Password Type.. SOAP message should look like this wsse UsernameToken wsse Username Removed wsse Username wsse Password Type http docs.oasis open.org..
WPF MVVM Newbie - how should the ViewModel close the form? http://stackoverflow.com/questions/501886/wpf-mvvm-newbie-how-should-the-viewmodel-close-the-form MVVM pattern. This form has a ViewModel which holds the Username and Password which are bound to the view in the XAML using normal..
Getting return value from stored procedure in C# http://stackoverflow.com/questions/706361/getting-return-value-from-stored-procedure-in-c-sharp param.Direction ParameterDirection.Input param.Value Username sqlcomm.Parameters.Add param SqlParameter retval sqlcomm.Parameters.Add..
Post “Hello World” to twitter from .NET application http://stackoverflow.com/questions/2849455/post-hello-world-to-twitter-from-net-application var twitter FluentTwitter.CreateRequest .AuthenticateAs USERNAME PASSWORD .Statuses .Update Hello World .AsJson var response..
WMI to reboot remote machine http://stackoverflow.com/questions/2921905/wmi-to-reboot-remote-machine a different account specify these values options.Username USERNAME options.Password PASSWORD options.Authority ntlmdomain DOMAIN..
Error in WCF client consuming Axis 2 web service with WS-Security UsernameToken PasswordDigest authentication scheme http://stackoverflow.com/questions/3102693/error-in-wcf-client-consuming-axis-2-web-service-with-ws-security-usernametoken channel UsernameToken ut new UsernameToken USERNAME PASSWORD PasswordOption.SendHashed XmlElement securityElement.. like so CustomBehavior behavior new CustomBehavior USERNAME PASSWORD client.Endpoint.Behaviors.Add behavior I can now see.. error WSSecurityEngine Callback supplied no password for USERNAME faultstring faultactor xmlns urn Remote_Provider faultactor..
ConfigurationManager.AppSettings - How to modify and save? http://stackoverflow.com/questions/5274829/configurationmanager-appsettings-how-to-modify-and-save Is it in the Debug folder or in C Documents and Settings USERNAME Local Settings Application Data folder c# .net appsettings..
Correct way communicate WSSE Usernametoken for SOAP webservice http://stackoverflow.com/questions/5836685/correct-way-communicate-wsse-usernametoken-for-soap-webservice wssecurity secext 1.0.xsd wsse UsernameToken wsse Username USERNAME wsse Username wsse Password Type http docs.oasis open.org wss..
How to decide where to store per-user state? Registry? AppData? Isolated Storage? http://stackoverflow.com/questions/882490/how-to-decide-where-to-store-per-user-state-registry-appdata-isolated-storage particularly the user's AppData folder eg C Users USERNAME AppData . Where does Isolated Storage come in Is there a pretty..
|