You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Provide PHP code for using stratumauth in a website #1245
Is your feature request related to a problem? Please describe.
I would like to use stratumauth authentication in addition to email to ensure accurate identification of my online clients (I am a nonprofit charity helping people).
Describe the solution you'd like
I would like to see a short, working example of PHP code that accepts a code from the stratumauth app via user input and verifies it.
What stratumauth uses is the industry standard. It uses TOTP or HOTP. Just implement basic functionality of TOTP on your website and it will work. There are open source libraries you can use to implement this, like this one: https://github.com/RobThree/TwoFactorAuth
Thank you, that code is good, but not at all simple. I will need to upgrade my version of PHP to use this, I would have to add Composer autoloader, implement QR code handling, and probably much more. My computer might not even have enough disk space for such modern software, and I might not have that much time available to upgrade my tool set.
I was hoping for a very simple implementation in PHP, one that would work from version 7.4 of PHP, and that would identify using a string of characters instead of a QR code, etc.
In other words, code simple enough to add stratumauth to any website. Is that even possible?
Activity
MillionsToOne commentedon Jan 29, 2025
What stratumauth uses is the industry standard. It uses TOTP or HOTP. Just implement basic functionality of TOTP on your website and it will work. There are open source libraries you can use to implement this, like this one: https://github.com/RobThree/TwoFactorAuth
David263 commentedon Jan 29, 2025
Thank you, that code is good, but not at all simple. I will need to upgrade my version of PHP to use this, I would have to add Composer autoloader, implement QR code handling, and probably much more. My computer might not even have enough disk space for such modern software, and I might not have that much time available to upgrade my tool set.
I was hoping for a very simple implementation in PHP, one that would work from version 7.4 of PHP, and that would identify using a string of characters instead of a QR code, etc.
In other words, code simple enough to add stratumauth to any website. Is that even possible?