# 2 steps authentication!

**URL:** <https://www.ruby-forum.com/t/2-steps-authentication/214086>\
**Category:** NGINX\
**Created:** [November 21, 2011, 1:02pm UTC](https://www.ruby-forum.com/t/2-steps-authentication/214086 "2011-11-21T13:02:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [November 21, 2011, 1:02pm UTC](https://www.ruby-forum.com/t/2-steps-authentication/214086/1 "2011-11-21T13:02:34Z")

</div>

Google 2 step authentication has a pam module:

> **[GitHub - google/google-authenticator: Open source version of Google...](https://github.com/google/google-authenticator)**
>
> Open source version of Google Authenticator (except the Android app) - GitHub - google/google-authenticator: Open source version of Google Authenticator (except the Android app)

So, theoretically, it could be implemented into nginx. What do you think  
about it?

My goal is to have 2 step auth, somehow, on some dir of my web server  
(some directory also has static content, so it isn’t a php script i can  
edit)

I think that it would be interesting. Many thanks!

Posted at Nginx Forum:

> **[2 steps authentication!](https://forum.nginx.org/read.php?2,218638,218638#msg-218638)**
>
> Google 2 step authentication has a pam module: http://code.google.com/p/google-authenticator/wiki/PamModuleInstructions So, theoretically, it could be implemented into nginx. What do you think about it? My goal is to have 2 step auth, somehow, on...

---

<div class="post-metadata">

**Author:** ![vedivad](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/d6d6ee/32.png) [@vedivad](https://www.ruby-forum.com/u/vedivad)\
**Post date:** [November 21, 2011, 1:25pm UTC](https://www.ruby-forum.com/t/2-steps-authentication/214086/2 "2011-11-21T13:25:35Z")

</div>

On 21 Nov 2011 12h01 WET, [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Google 2 step authentication has a pam module:
> 
> [GitHub - google/google-authenticator: Open source version of Google Authenticator (except the Android app) · GitHub](http://code.google.com/p/google-authenticator/wiki/PamModuleInstructions)

You can implement 2 factor authentication on Nginx using the  
auth\_request module:

> **[ngx\_http\_auth\_request\_module: a29d74804ff1 README](http://mdounin.ru/hg/ngx_http_auth_request_module/file/a29d74804ff1/README)**

— appa
