passwordless_auth alternatives and similar packages
Based on the "Authentication" category.
Alternatively, view passwordless_auth alternatives based on common mentions on social networks and blogs.
-
coherence
Coherence is a full featured, configurable authentication system for Phoenix -
ueberauth
An Elixir Authentication System for Plug-based Web Applications -
phx_gen_auth
An authentication system generator for Phoenix 1.5 applications. -
guardian_db
Guardian DB integration for tracking tokens and ensuring logout cannot be replayed. -
Phauxth
Not actively maintained - Authentication library for Phoenix, and other Plug-based, web applications -
goth
Elixir package for Oauth authentication via Google Cloud APIs -
Shield
Shield is an OAuth2 Provider hex package and also a standalone microservice build top of the Phoenix Framework and 'authable' package. -
PowAssent
Multi-provider authentication for your Pow enabled app -
elixir_auth_google
👤Minimalist Google OAuth Authentication for Elixir Apps. Tested, Documented & Maintained. Setup in 5 mins. 🚀 -
samly
Elixir Plug library to enable SAML 2.0 SP SSO in Phoenix/Plug applications. -
basic_auth
Elixir Plug to easily add HTTP basic authentication to an app -
ueberauth_facebook
Facebook OAuth2 Strategy for Überauth. -
doorman
Tools to make Plug, and Phoenix authentication simple and flexible. -
ueberauth_identity
A username/password Strategy for Überauth -
ueberauth_microsoft
Microsoft Strategy for Überauth -
Paseto
An Elixir implementation of Paseto (Platform-Agnostic Security Tokens) -
blackbook
All-in-one membership/authentication system for Elixir. -
aeacus
A simple, secure, and highly configurable Elixir identity [username | email | id | etc.]/password authentication module to use with Ecto. -
sigaws
An Elixir library to sign and verify HTTP requests using AWS Signature V4 -
phoenix_client_ssl
Set of Plugs / Lib to help with SSL Client Auth. -
ueberauth_cas
Central Authentication Service strategy for Überauth -
ueberauth_active_directory
Uberauth strategy for Active Directory authentication. -
exBankID
exBankID is a simple stateless API-client for the Swedish BankID API -
zachaeus
An easy to use licensing system, using asymmetric cryptography to generate and validate licenses. -
ex_aws_msk_iam_auth
AWS_MSK_IAM Authentication Plugin for Broadway Kafka
Updating dependencies is time-consuming.
Do you think we are missing an alternative of passwordless_auth or a related project?
README
PasswordlessAuth
PasswordlessAuth provides functionality that can be used in an authentication or verification system, such as a passwordless or multi-factor authentication flow, or for verifying a user's ownership of a phone number, email address or any other identifying address.
- Generate verification codes
- Verify a user's attempt at entering a code
- Rate limit attempts
- Expire codes
This library doesn't deal with sending the codes to recipients.
See Usage for example usage.
Documentation
Documentation is available at https://hexdocs.pm/passwordless_auth
Installation
Add :passwordless_auth
to your list of dependencies in mix.exs
:
def deps do
[
{:passwordless_auth, "~> 0.3.0"}
]
end
Configuration
The following PasswordlessAuth config can be set in your config/config.exs
file:
config :passwordless_auth,
# How long codes are valid for
verification_code_ttl: 300, # seconds; default: 300
# Rate limiting: how many failed attempts are allowed before the timeout is applied
num_attempts_before_timeout: 5, # default: 5
# Rate limiting: how long to disallow attempts after the limit has been reached
rate_limit_timeout_length: 60, # seconds; default: 60
# How often to clear out expired codes
garbage_collector_frequency: 30 # seconds; default: 30
Usage
Here's an example where the code is sent to a recipient's phone number using ExTwilio.
1. Generate a verification code for the recipient
User enters their phone number to request a verification code.
code = PasswordlessAuth.generate_code("+447123456789")
=> "123456"
2. Send the code to the recipient
This library doesn't deal with SMS or emails, so this bit is up to you.
ExTwilio.Message.create(%{
to: "+447123456789",
body: "Your code is #{code}"
})
3. Verify the code
Recipient receives a text message with their verification code. They enter it into your system and you verify that it is correct.
attempt_code = "123456" # The user's attempt at entering the correct verification code.
PasswordlessAuth.verify_code(
"+447123456789",
attempt_code
)
Returns true
or false
.
Once a code has been verified, you can remove it so that it can't be used again before it expires.
PasswordlessAuth.remove_code("+447123456789")