Two Factor Authentication

From SocialStack
Revision as of 20:42, 8 April 2024 by 2a02:c7c:c43f:c600:4da:6da3:7e79:6c0d (talk) (Created page with "SocialStack has a pluggable user authentication mechanism so each authentication provider is modular and can work together. This is particularly useful...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

SocialStack has a pluggable user authentication mechanism so each authentication provider is modular and can work together. This is particularly useful for two factor authentication where a user and password combination is used, followed by entering a generated value from a physical device. This is just an example combination of course, and this article covers how you might implement it.

Google authenticator

To quickly get started with Google Authenticator based 2FA, install the following two modules:

socialstack install UI/TwoFactorGoogleSetup Api/TwoFactorGoogleAuth

The first provides the UI's which display to the user when they require either setting up or inputting a 2FA pin. The second is the backend module which provides the authentication module itself in to the SocialStack authentication pipeline.

This small module is typically compatible with any other authentication mechanism such as the default password based mechanism.