Auto fill-in username + password when user clicks a website link

Web Technologies Web Development 2 years ago

0 1 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating
_x000D_ _x000D_ I am currently building an intranet site and on this site, we have websites people would frequently use. There are a couple of websites where people need to login though. So I was wondering if there is a way to automatically fill in the username and password box on that website when the user clicks the link for it. The login info will never change and all users have to use the same login. Something that automates this process would make things easier for the user. So in my aspx, I would have something like this (not this exact website but a different one): Litmos
I'm not sure if I need to use the code behind to do what I want or maybe some Javascript. The type of functionality I am looking for is like the one found in KeePass. Where you enter your username and password along with a website url and when you open that website from KeePass, it fills the login info for you. I realize that that is a desktop application and I'm building an ASP.NET website. I want to know if something like this is possible and if so, how. Just so you know, I'm using C# for the code behind for the intranet site.

Posted on 16 Aug 2022, this text provides information on Web Development related to Web Technologies. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (1)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago
_x000D_ I figured out how to do this. Make a new HTML page and add the code below to it. When done, you can create a link wherever you wanted and make the source equal to the HTML page you just created. Automatic Login
I'm not sure if this is the best way to do this but it works. Alternatively, if you are worried about an odd user seeing the source code for this page, you could use php to do something similar so that your username and password only appear in your php code and since php would be executed on the server, the source code wouldn't show the username and password, I think. I haven't tried that solution because I don't have php installed on this webserver, nor do I plan to install it.

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.

Important Web Technologies Links