Giter VIP home page Giter VIP logo

Comments (7)

itemir avatar itemir commented on July 28, 2024 1

I appreciate this has been closed for a while now but wanted to add a reference if someone lands here as I did.

There is a way to add Apache authentication (username & password based on mod_auth_basic, mod_auth-digest etc) and separate TOTP for 2FA authentication. It can be done by leveraging Apache mod_rewrite and some additional scripts. More details and code is available here:

https://github.com/itemir/apache_2fa

from google-authenticator.

ThomasHabets avatar ThomasHabets commented on July 28, 2024

Comment #1 originally posted by elstudio3 on 2011-02-22T22:52:03.000Z:

mod_auth_pam allows Apache to use PAM for auth -- doesn't that take care of this?

from google-authenticator.

ThomasHabets avatar ThomasHabets commented on July 28, 2024

Comment #2 originally posted by jim.kleckner on 2011-02-24T18:18:50.000Z:

It would be very useful if someone could sketch out the Apache2 PAM integration if they have done it.

Doesn't the authentication model implemented in Apache2 assume name + password, not name + password + totp? What would it take to add it?

from google-authenticator.

ThomasHabets avatar ThomasHabets commented on July 28, 2024

Comment #3 originally posted by jim.kleckner on 2011-02-25T05:34:41.000Z:

FYI, from here:
http://pam.sourceforge.net/mod_auth_pam/

It says:
Due to constraints in the "Basic" authentication scheme (RFC 2617), it only supports username/password-style authentication.

and:
mod_auth_pam is not supported and/or developed any longer. The original author moved on and it mostly works for Apache 1.3 and 2.0.

from google-authenticator.

ThomasHabets avatar ThomasHabets commented on July 28, 2024

Comment #4 originally posted by [email protected] on 2011-03-09T20:34:58.000Z:

Merging into bug # 39 as it appears that the solution for both bugs would be identical.

from google-authenticator.

ThomasHabets avatar ThomasHabets commented on July 28, 2024

Comment #5 originally posted by bkgoodman on 2011-04-28T16:44:01.000Z:

I have written an Apache Authentication module for Google Authenticator.

It works, but I am still working around some inherent difficulties in using this type of authentication with HTTP (short-lived-sessions) vs. something like SSH.

Ideally - I guess I would like to submit it into this project. I don't know how you feel about that - as it's not strictly part of the "PAM" module. It does however reuse a lot of your code.

Please tell me if you'd like to include it here, (or anyone would like to take a look at it), or I should put in in a separate project somewhere.

from google-authenticator.

ThomasHabets avatar ThomasHabets commented on July 28, 2024

Comment #6 originally posted by bkgoodman on 2011-05-05T15:57:37.000Z:

Apache module is now available at:

http://code.google.com/p/google-authenticator-apache-module/

from google-authenticator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.