Skip to content

Provide PHP code for using stratumauth in a website #1245

Closed

Description

@David263

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.

Additional context
N/A

Activity

  1. MillionsToOne commented on Jan 29, 2025

    @MillionsToOne

    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

  2. David263 commented on Jan 29, 2025

    @David263
    Author

    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?

  3. locked and limited conversation to collaborators on Feb 4, 2025
  4. converted this issue into a discussion #1247 on Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions