Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[INTERESTING] login without password (using smartphone QRs) #290

Closed
panique opened this issue Nov 14, 2013 · 19 comments
Closed

[INTERESTING] login without password (using smartphone QRs) #290

panique opened this issue Nov 14, 2013 · 19 comments

Comments

@panique
Copy link
Owner

panique commented Nov 14, 2013

Gentlemen,

one of my favourite (german) PHP blogs just posted a very very interesting solution for SECURE login-processes while using a (possibly infected, keylogged etc.) computer in internet cafes, hotels, universities etc. You know what I mean.

This is awesome! According to the article this/something similar has been tested by Google, too.

(german) article:
http:https://www.phpgangsta.de/sesam-oeffne-dich-sicher-einloggen-im-internetcafe

Github repo:
https://github.com/PHPGangsta/Sesame

Demo:
http:https://sesame.phpgangsta.de/

Feel free to experiment with this and maybe pushing this feature into the 2-advanced / 4-full version.

@ghost
Copy link

ghost commented Nov 14, 2013

Isn't this Steve Gibson idea ?
https://www.grc.com/sqrl/sqrl.htm

@panique
Copy link
Owner Author

panique commented Dec 5, 2013

@tech-samuel Yes, I think so! But the guy behind the blog post didn't say he invented it, in fact he stated very clearly that he simply wants to show a simple implementation / live demo of this login thing.

@ghost
Copy link

ghost commented Dec 5, 2013

Yes i know that. Steve Gibson still hasn't finished the spec for this login system yet. So i think we should wait till the spec is complete. :)

@panique panique changed the title [potential feature] login without password (using smartphone QRs) [3.0][potential feature] login without password (using smartphone QRs) Apr 19, 2014
@panique panique added this to the 3.0 milestone May 2, 2014
@thierryve
Copy link

I had a look at the code of PHPGangsta and It looks relatively easy to implement.
One of the things he used for his example is

<meta http-equiv="refresh" content="5">

This is used to, every 5 secondes, check if the generated sesamecode is used when a user logged in.

It works fine but there must be a better solution then a page refresh. What do you guys think?
Some options that are out there:

  • Use AJAX to pull every X seconds
  • Websockets (maybe a bit to heavy)
  • There are some API's (also to heavy if you ask me)

In my opinion the first option is the best one.

i'd love to hear what you think

@thierryve
Copy link

Hey!
On https://github.com/thierryve/php-login/tree/feature/290-login_without_password I created a first version of this feature.
There are still a lot of todo's like but it is a start

  • Rewriting the 5 second refresh to a more userfriendly variant
  • Cleanup unused sesame's (database and file)
  • Checking allround security
  • Implement for facebook registered users (facebook login)
  • Probably many more!

I'll like some general feedback so we can further improve this cool feature!

@panique
Copy link
Owner Author

panique commented Aug 20, 2014

@thierryve Wow! Big thanks! I'll look into that when there's time!

@sopitz
Copy link

sopitz commented Aug 20, 2014

@thierryve Is there a demo somewhere on how that would work in the end? Would love to see it (but honestly dont have the time to deploy it right now :D)!

@thierryve
Copy link

@sopitz you lazy .... :D
Sorry I don't have a test / dev server that is accessible of the internet atm (using vagrant).
I will try to setup a public demo in a couple of day. I will also need it to test it on a actual mobile device.

@thierryve
Copy link

@sopitz I created a public demo page for this feature.
See http:https://php-login.cophpol.com

Love to get your feedback!

@ghost
Copy link

ghost commented Aug 25, 2014

I don't know if it's my end or something else, but it's not working for me :S

I click the link /login/index?code=123456 and it's opens a page without the QR nor the link, but the first page does not log in.

@thierryve
Copy link

@KatzArie this is how it works.

  1. create an account (enter a real email address for the activation email, I removed the overview page so your emailaddress will stay private)
  2. Active the account
  3. Go to the login page
  4. Open sesame link in another browser or scan the QR code with your mobile phone
  5. Sign in with your credentials
  6. Go to your original browser or desktop PC
  7. Sesame! Now you logged on without entering your credentials

Hopefully it works, otherwise I have some bugs to fix 😋

@thierryve
Copy link

Here is a test account for everyone that doesn't want to make an own account.
Username: test
Password: phplogin

@ghost
Copy link

ghost commented Aug 25, 2014

Work'n! N!CE :D

@thierryve
Copy link

I just updated this feature.
New

  • ajax check for login instead of page refresh
  • cleanup database event (maybe add a cronjob for shared hosting)
  • implemented for facebook and cookie login
  • When you're logged in on for example your mobile phone and scan the qr code you will automatically logon
  • some refactoring

Love to hear if you think it is ready for a pull request

@panique
Copy link
Owner Author

panique commented Sep 13, 2014

This might become a SERIOUS thing! I've just read some things about the post-password-auth-era, and authenticating/logging-in via hardware / mobile devices / body parts (!) is more than just future fantasy, it's coming!

Maybe optional two-factor authentication (password + SMS-code on your smartphone) is an optional feature for php-login 3.0, too.

@sopitz
Copy link

sopitz commented Sep 14, 2014

@panique I posted that in a different ticket a while ago already: https://medium.com/@ninjudd/passwords-are-obsolete-9ed56d483eb

I will have a look into that and probably implement it early 2015 when I'm done with my 2014 release.

@sopitz
Copy link

sopitz commented Sep 23, 2014

Maybe you all are interested in this. Seems to be super easy to integrate and is free for small projects.
https://www.duosecurity.com/editions
What do you think?

EDIT: I just set it up for a personal project and github. THAT STUFF IS AWESOME!! Should be a must for everyone.

@panique panique removed the v3.0 label Jan 25, 2015
@panique panique modified the milestone: 3.0 Jan 25, 2015
@panique panique added the v3.0 label Jan 25, 2015
@panique panique changed the title [3.0][potential feature] login without password (using smartphone QRs) [3.x][potential feature] login without password (using smartphone QRs) Mar 14, 2015
@panique panique changed the title [3.x][potential feature] login without password (using smartphone QRs) [INTERESTING] login without password (using smartphone QRs) Sep 7, 2015
@panique
Copy link
Owner Author

panique commented Oct 11, 2015

Hey, I'm currently "cleaning" the project a little bit and moving feature-requests like this to an own list inside the readme file (find it under the "future features" point). I hope you are okay with it, as most tickets here are new features and not really bugs or so.

My idea is just to avoid this project from getting oversized by too many features, so I'm closing the ticket, but for sure linking it from the readme in case somebody wants to implement this.

I hope you are all okay with this. :)

@panique panique closed this as completed Oct 11, 2015
@10vish
Copy link

10vish commented Sep 8, 2018

hai, i wanted to change the url to custom url, can you please help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants