Not Store Credentials
Feb 3, 2010I have a site that has username and password fields, but it's odd that after I logged in, next time I come back to the site, it doesn't store my credentials. Am I missing something?
View 24 RepliesI have a site that has username and password fields, but it's odd that after I logged in, next time I come back to the site, it doesn't store my credentials. Am I missing something?
View 24 RepliesDoes anyone know a good tutorial for building a custom login control I've tried looking for one that suits my needs with no success. I want to be able to store credentials and other information in an XML file
View 1 RepliesI'm looking for a way I can store username and password credentials in a web.config file & use these values to re-direct to another web service, once these are authenticated.
The process is as follows:
* User logs into our website with required credentials
* There is a link on our website which invokes a new webservice
* The webservice is a paid for subscribed service (which requires authentication)
* Usually, there is a web form for this type of web service but since we need to steam-line the process from initial application logon, the logon page is not required.
* So when the link on our website is clicked, the new webservice is invoked. Authentication should be done by using the credentials in the web.config file and user is redirected to webservice (avoiding logon page)
Could someone tell me using pseudocode or a small asp.net code example how we could achieve this process?
The key goal is to avoid user going into the Logon page and redirecting directly to the URL for usage of the webservice.
I'm working on an ASP.NET project for the first time in about three years; in the meantime I've been working with Python/Django, PHP and Obj-C. Anyways, picked it right back up... except something that is totally killing me right now, and I have a feeling it must be staring me in the face:
I'm trying to bind to an LDAP server, for the purpose of authenticating users. The way it works here is, you bind on your own credentials, use that to find the Distinguished Name of the user you're authenticating, then you bind again on their DN and their password. If the bind is successful, the password was correct and the user can be authenticated.
Here's the problem - the first bind (on the fixed credentials, the ones with the ability to search for users and their subtrees) works fine. The search works fine. The second bind fails, no matter what, with the LDAP error INVALID_CREDENTIALS. This happens even when completely valid credentials are supplied.
Here's the code, with the usernames and passwords redacted, of course...
[Code]....
My SQL stored procedure returns 3 different datasets as follows:
team_id name
1 Team1
2 Team2
...and more
location_id name
1 Dallas
2 New York
...and more
branch_id name
1 Austin
2 New Jersey
...and more
How do I put this data into one Dataset so that I can loop through the data and manipulate it?
hey folks I got a general question that maybe some of you can just weigh in. I developed an online store for a client and people place orders online for a food ordering place however I am trying to find the best way to have the orders show up for them at the store. Currently I am sending an email and an autoprint software prints it out which works most of the time but not good enough sometimes it doesn't print. Anyone had similar issues or have other alternative solutions you may have heard off? Like I said the site sends an email to the customer and the store's email account.
View 7 RepliesIts related to datatable in gridview store in session and then session retrive and store to database. basically i am using gridview here creating new row for button click and these row adding untill user's last entry then submit all these entry to database. so i want to use session variable to store this data temporarily and after final entry user click on submit button and all data shold be save in db.
View 9 RepliesIs it better to store images directly in a database or to just store the name of the file in the db and display that file? I would think that just storing the filename of the image would keep the db size low...
View 1 RepliesHere is my scenario -
1/ I have an ASP.NET MVC application running on my server, it uses Windows Authentication.
2/ There is different web application (written in Java) somewhere else that also uses Windows Authentication.
In the Controller of my MVC application I need to grab some information from this other Web app. How can I connect to the "foreign" application using the credentials of the user that is accessing my Controller?
I got a web service that I protect with basic authentication and use ssl. to make it easy for the clients that are gone use this web service I want to skip the 401 and send the credentials with the url (I would like so the customer can access the web service with url from their code / web app), question is this possible?I know about headers but a lot of the clients gone use this do not got the proper developing team to do code.
View 3 RepliesWeb service error response (code/message etc) would you store it in a database? or would you keep the error response in a method.By the time I'm done with this, there will be hundreds of error response, maybe in the future, thousands? (I dont know yet, depends how large this web service grows).EDIT: error response is the response returned back to the application via the web service, (not to be confused with error logging).
View 1 RepliesI have to post my request to the web page [URL] and this require 3 credentials namely account id ,username and password and i have to pass the some data for the fields in the page
View 3 RepliesWe have an ASP.net application but some screens are deemed too slow to use by our users.As a result, we are trying to provide a WinForms-based alternative to those data-input centric screens so we can use richer controls like Grids with immediate screen updates and feedback for the user.
Ideally, I would like the users to login to the WinForms application using the same credentials they use in the ASP.net application?
Is it possible?I've found this post ( http://stackoverflow.com/questions/1172069/net-authentication-for-both-web-and-winforms ) but it isn't really answering the question from my point of view... We are not using WebServices, or WCF at the moment and do not plan to use it unless it is really the only way to achieve this.
I am using windows authentication for security in my webpage. Now i want is that if user opens a webpage and then sit idle for 15 minutes and after that try to use webpage , i can ask him for credentials.
View 3 RepliesI have a portal say 'portal.mysite.com'. I have another portal say 'login.mysite.com'. Could someone tell me how I could use the same login credentials to login into the subdomain?
View 1 RepliesIs it possible to use credentials from a Webmail account such as Yahoo, Mail, Techemail, etc. for sending emails from within my webpage? I have a webmail account with Techemail.com and Yahoo. Instead of using my hosting SMTP credentials, I wish to use Techemails or Yahoos. I found an example using Yahoo's SMTP/POP information and tried to emulate it in my webpage but I keep getting the "Failure sending mail" error. Not sure what I'm doing wrong. Here is my code below.
Imports System.Net.Mail
Private Sub FormatEmail()
Try
Dim [to] As String = txtEmailAddress.Text
Dim [from] As String = "myEmail@techemail.com"
[Code] ....
I want to import yahoo contacts from yahoo credentials. In my application user will enter the credentials and his contacts should be imported. How can I do it ? I have already looked this Import Address Book from Gmail/Hotmail/Yahoo using C# and ASP.NET but this does not helped much. Is there any rest call to yahoo by which I can import contacts?
View 1 RepliesI have a .Net web application which successfully takes on the callers windows credentials (Thread.CurrentPrincipal is my windows user).
Within that app, I call to a WCF service, but my windows identity isn't passed up. Regardless of what I put in the binding:
NetTcpBinding binding = new NetTcpBinding();
binding.Security.Mode = SecurityMode.Transport;
binding.Security.Transport.ClientCredentialType = TcpClientCredentialType.Windows;
have been facing a problem in passing credentials to a web service. I have searched a lot on it and found solution but they didn't work for me coz the scenario with me little different I believe.The situation is like this. I have a 3rd party web service "https://3rdpartyserver/virtualdirectroy/service/service.aspx".So when I try to browse the service in IE it takes me to the login page ("https://3rdpartyserver/virtualdirectroy/Loginpage.aspx"), when I enter usename and password in it and hit Log In button it takes me to the service where all the web methods are listed
View 3 RepliesIf a user has signed into their computer and are connected to an intranet, is there a way to grab the users crendtials and authentication them in asp.net? What specific code would do this?
View 2 RepliesI am trying to "behind the scenes" log myself into a website, from the VB code behind my ASP.NET website. But I am dumbfounded as to how to do this.
As far as I know I should be using the WebRequest or Webclient class. That is about as much as I know. I am not sure how to use the class.
I want to click a button on my website and have its Click event send a username and password to another website. This other site isot affiliated with mine. I realize the concept may seem stupid, but I plan on taking this further later, but Just need to know this now.
Is there any other place that makes sense to store credentials for third party APIs that you use to make API calls for Facebook, PayPal, etc.? I'm tempted to store sets of credentials (Sandbox, Live), etc. in my web.config and the in a Profile.cs class create a couple methods to go out and populate the profile custom object's properties with the values from my web.config based on an enum that holds the type of Profile account I want to get details for.
So for example I have an enum for PayPal called PayPalProfileType that has value ExpressCheckoutSandbox and ExpressCheckoutLive
In the constructor I'm passing in one of these values then calling a method SetSandboxValues() or SetLiveValues() dependong in what value was passed into my constructor. The SetSandBoxValues for example would set my Profile.cs's properties like ApiUserName, ApiPassword, ApiSignature with the values grabbed from my web.config in a section that has all sandbox values in my web.config.
I have a folder "uploads" at my FTP and I have to upload all the files in that folder using ASP Fileupload control, but I have to use FTP Credentials to upload the files. Earlier I use to do the same action by giving Write Permission to Internet Guest Account (IUSR) on that folder, but now scenario is different. Also what is the different between both methods? Is there any security concern in File Upload using FTP Credentials?
View 3 RepliesIs there any way,in Visual Studio,to specify credentials to test a web page with rather than having to go through the process of logging in every time?is there some common technique to testing with different roles and logins?It's just really tedious to constantly have to login and navigate to a specific page to test.
View 2 RepliesI have this code to send email notification in my page.
MailAddress to = new MailAddress("xxxxx@gmail.com");
MailAddress from = new MailAddress("xxx@gmail.com");
MailMessage message = new MailMessage(from, to);
message.Subject = "Error Occred in the application:";
message.Body = ex.Message;
SmtpClient client = new SmtpClient("smtp.gmail.com", 587);
client.EnableSsl = true;
client.Credentials = new NetworkCredential("user", "password");
Is there any other way we have without giving credentials to send the message?