Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to auto-login website in chrome with saved password

Chrome is auto-filling the credentials, but not log me in until I click login. How to automate? (windows, non-google websites).

like image 732
Dr.PB Avatar asked Jun 12 '16 22:06

Dr.PB


People also ask

How do I automatically login to my website?

In your Web session – General tab – enter your web browser URL. Then in the Login tab, click on the Authentication mode drop-down menu and select Form. Next, in the Credentials tab, enter your username and password. In the Html Control ID tab, you'll notice two options: Automatic and Discover.

How do I force a website to remember my password?

Open your Chrome browser. In the address bar type in: 'chrome://flags/#enable-password-force-saving', then press “Enter.” Choose “Enabled” from the drop-down menu under the “Force-saving of passwords” option. Navigate to the bottom right of the page and click the blue “Relaunch” button.

How do I Autofill a username in Chrome?

Open your Chrome browser. Click on the three dots at the top right corner. Go to Settings, look for the Autofill section, and select Passwords. You will see a list of websites with usernames and passwords.


2 Answers

Using the Chrome Identity API you can have Chrome (on desktop and Android) automatically attempt to log in the user when they hit your page, even if their session has expired.

Following is a workflow diagram of how it works, but the details can be found in the Google Authentication API: Let the user automatically sign back in section:

Workflow example

like image 117
SmileyChris Avatar answered Sep 28 '22 17:09

SmileyChris


It is not the browser's responsibility to auto-login to websites. This is the responsibility of the website you are accessing. The browser can remember form data and auto-fill for you, as can various extensions like LastPass.

However, in order to actually auto-login, you must first login to the website you are trying to access and enable the option they provide, often called 'Remember me?'. The website would typically use a cookie to store the credentials (securely with a hash + salt), and if the cookie still exists (not cleared from the browser or expired), and the hash of real password in database matches the one in the cookie, the website will auto-login.

You could force the browser to try and auto-login with extensions, which are essentially macros. You could try Auto Login or iMacros extensions for this. I would generally avoid this though.

like image 25
Gideon Pyzer Avatar answered Sep 28 '22 17:09

Gideon Pyzer