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

TOTP? #79

Open
efaden opened this issue Jul 14, 2017 · 5 comments
Open

TOTP? #79

efaden opened this issue Jul 14, 2017 · 5 comments

Comments

@efaden
Copy link

efaden commented Jul 14, 2017

Is there a simple way to implement login for this using passport-totp? I just need to have a static set of users that I would like to have with TOTP and not using any external oauth server. Basically I just need to have a chat that has a login with user/password/totp.... Similar to the IP-based, but instead with TOTP. The users will be static and I can just hardcode them and their keys into JS. Thoughts?

@Canop
Copy link
Owner

Canop commented Jul 14, 2017

You could try doing it. I currently have no time to explore it.
It should of course be done with a plugin but there might be some necessity for a change of the core. I'll be welcoming your input for incorporating or implementing changes in the core of miaou for this.

Please note that the best place for discussions on Miaou is Miaou: https://dystroy.org/miaou/1

@efaden
Copy link
Author

efaden commented Jul 14, 2017 via email

@Canop
Copy link
Owner

Canop commented Jul 14, 2017

A plugin can already add routes. Adding the ability to plug pug views would probably be easy. If you think you'd use it, I'll add that.

@efaden
Copy link
Author

efaden commented Jul 14, 2017 via email

@Canop
Copy link
Owner

Canop commented Jul 16, 2017

I've built an example of a Miaou plugin declaring a route and using a pug view, it's very simple: https://github.com/Canop/miaou-sample-view

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

2 participants