Pow
▼
Project version
v1.0.39
v1.0.38
v1.0.37
v1.0.36
v1.0.35
v1.0.34
v1.0.33
v1.0.32
v1.0.31
v1.0.30
v1.0.29
v1.0.28
v1.0.27
v1.0.26
v1.0.25
v1.0.24
v1.0.23
v1.0.22
v1.0.21
v1.0.20
v1.0.19
v1.0.18
v1.0.17
v1.0.16
v1.0.15
v1.0.14
v1.0.13
v1.0.12
v1.0.11
v1.0.10
v1.0.9
v1.0.8
v1.0.7
v1.0.6
v1.0.5
v1.0.4
v1.0.3
v1.0.2
v1.0.1
v1.0.0
v1.0.0-rc.4
v1.0.0-rc.3
v1.0.0-rc.2
v1.0.0-rc.1
v1.0.0-rc.0
v0.1.0-rc.1
v0.1.0-alpha.8
v0.1.0-alpha.7
v0.1.0-alpha.6
v0.1.0-alpha.5
v0.1.0-alpha.4
v0.1.0-alpha.3
v0.1.0-alpha.2
v0.1.0-alpha.1
v0.1.0-alpha
Pages
Modules
Mix
Tasks
API Reference
Modules
Mix Tasks
Features
Installation
Getting started
Extensions
Configuration
Plugs
Pow security practices
Other libraries
Contributing
LICENSE
Contributing to Pow
Postgres setup
Mocks
Extension test support
Releases
Changelog
v1.0.39 (2025-01-11)
v1.0.38 (2024-04-11)
v1.0.37 (2024-03-03)
v1.0.36 (2024-02-07)
v1.0.35 (2024-01-04)
v1.0.34 (2023-09-18)
v1.0.33 (2023-09-05)
v1.0.32 (2023-08-30)
v1.0.31 (2023-06-09)
v1.0.30 (2023-04-28)
v1.0.29 (2023-03-21)
v1.0.28 (2023-03-17)
v1.0.27 (2022-04-27)
v1.0.26 (2021-11-06)
v1.0.25 (2021-09-26)
v1.0.24 (2021-05-27)
v1.0.23 (2021-03-22)
v1.0.22 (2021-01-27)
v1.0.21 (2020-09-13)
v1.0.20 (2020-04-22)
v1.0.19 (2020-03-13)
v1.0.18 (2020-02-14)
v1.0.17 (2020-02-04)
v1.0.16 (2020-01-07)
v1.0.15 (2019-11-20)
v1.0.14 (2019-10-29)
v1.0.13 (2019-08-25)
v1.0.12 (2019-08-16)
v1.0.11 (2019-06-13)
v1.0.10 (2019-06-09)
v1.0.9 (2019-06-04)
v1.0.8 (2019-05-24)
v1.0.7 (2019-05-01)
v1.0.6 (2019-04-19)
v1.0.5 (2019-04-09)
v1.0.4 (2019-03-13)
v1.0.3 (2019-03-09)
v1.0.2 (2019-02-28)
v1.0.1 (2019-01-27)
v1.0.0 (2018-11-18)
Extensions
PowEmailConfirmation
Installation
Configuration
Prevent persistent session sign in
Test and seed
Note on PowInvitation
PowInvitation
Installation
Configuration
Note on PowEmailConfirmation
PowPersistentSession
Installation
Configuration
PowResetPassword
Installation
Configuration
Guides
Why Pow
Functional configuration
Modular
Low dependency requirement
Extendable
Developer friendly
Secure
Production ready
Production checklist
REQUIRED: Use a persistent cache store
OPTIONAL: Validate that strong passwords are used
OPTIONAL: Use an appropriate password hash method
OPTIONAL: Rate limit authentication attempts
OPTIONAL: Rate limit e-mail delivery
Security practices
User ID
Password
Session management
Timing attacks
User enumeration attacks
Browser cache
Configuring mailer
Swoosh mailer
Bamboo mailer
How to add user roles
Update your schema
Add role plug
Using role permissions with layout
Test modules
How to lock users
Update your schema
Set up controller
Prevent sign in for locked users
Optional: PowResetPassword
Test modules
Custom controllers
Routes
Further customization
Disable registration
Templates
Routes
Redis cache store backend
Test module
Pow in an umbrella project
Multitenancy with Pow
Process dictionary
Triplex
Triplex create tenant migration with user
Triplex test modules
Update cached user credentials
Update Pow.Store.CredentialsCache config
Reload the user with a plug
Update user in the credentials cache
How to use Pow in an API
Routes
API authorization plug for Pow
API authorization error handler
Add API controllers
OAuth 2.0
Test modules
Pow.Config
Summary
Types
t/0
Functions
get/3
merge/2
put/3
raise_error/1
repo!/1
user!/1
Pow.Context
Summary
Types
changeset/0
user/0
Callbacks
authenticate/1
create/1
delete/1
get_by/1
update/2
Pow.Extension.Base
Sections
Usage
Summary
Callbacks
ecto_schema?/0
phoenix_controller_callbacks?/0
phoenix_messages?/0
phoenix_router?/0
phoenix_templates/0
use_ecto_schema?/0
Functions
has?/2
use?/2
Pow.Extension.Config
Summary
Functions
discover_modules/2
extension_modules/2
extensions/1
underscore_extension/1
Pow.Operations
Summary
Functions
authenticate/2
changeset/2
changeset/3
create/2
delete/2
fetch_primary_key_values/2
get_by/2
reload/2
update/3
Pow.UUID
Summary
Functions
generate/0
Plug
Pow.Plug
Summary
Functions
assign_current_user/3
authenticate_user/2
change_user/2
create/2
create/3
create_user/2
current_user/1
current_user/2
delete/1
delete/2
delete_user/1
fetch_config/1
get_plug/1
prepend_with_namespace/2
put_config/2
sign_token/4
update_user/2
verify_token/4
Pow.Plug.Base
Sections
Configuration options
Example
Summary
Callbacks
call/2
create/3
delete/2
fetch/2
init/1
Functions
store/1
Pow.Plug.MessageVerifier
Summary
Callbacks
sign/4
verify/4
Functions
sign/4
verify/4
Pow.Plug.RequireAuthenticated
Sections
Example
Pow.Plug.RequireNotAuthenticated
Sections
Example
Pow.Plug.Session
Sections
Example
Configuration options
Custom metadata
Session expiration
Summary
Functions
call/2
create/3
delete/2
do_create/3
do_delete/2
do_fetch/2
fetch/2
Ecto
Pow.Ecto.Context
Sections
Usage
Configuration options
Summary
Types
changeset/0
user/0
Functions
authenticate/2
create/2
delete/2
do_insert/2
do_update/2
get_by/2
repo/1
update/3
user_schema_mod/1
Pow.Ecto.Schema
Sections
Usage
Configuration options
Customize Pow fields
Customize Pow changeset
Summary
Callbacks
changeset/2
verify_password/2
Functions
filter_new_fields/2
normalize_user_id_field_value/1
pow_user_fields/0
user_id_field/1
Pow.Ecto.Schema.Changeset
Sections
Configuration options
Summary
Functions
confirm_password_changeset/3
current_password_changeset/3
new_password_changeset/3
password_changeset/3
user_id_field_changeset/3
validate_email/1
verify_password/3
Pow.Ecto.Schema.Fields
Summary
Functions
attrs/1
indexes/1
Pow.Ecto.Schema.Migration
Sections
Configuration options
Summary
Functions
gen/1
new/3
schema/7
Pow.Ecto.Schema.Module
Sections
Configuration options
Summary
Functions
gen/1
new/4
Pow.Ecto.Schema.Password
Sections
Configuration
Summary
Functions
pbkdf2_hash/2
pbkdf2_verify/3
Pow.Ecto.Schema.Password.Pbkdf2
Summary
Functions
compare/2
generate/5
Phoenix
Pow.Phoenix.Controller
Sections
Usage
Configuration options
Summary
Functions
action/3
messages/2
put_no_cache_header/2
require_authenticated/2
require_not_authenticated/2
route_helper/1
routes/2
Pow.Phoenix.Mailer
Sections
Usage
Summary
Callbacks
cast/1
process/1
Functions
deliver/2
Pow.Phoenix.Mailer.Component
Sections
Usage
Summary
Functions
sigil_H/2
sigil_P/2
Pow.Phoenix.Mailer.Mail
Sections
Custom layout
Summary
Types
t/0
Functions
new/4
put_layout/3
Pow.Phoenix.Mailer.Template
Sections
Usage
Summary
Functions
template/4
Pow.Phoenix.Messages
Sections
Usage
Summary
Types
message/0
Callbacks
invalid_credentials/1
signed_in/1
signed_out/1
user_already_authenticated/1
user_could_not_be_deleted/1
user_has_been_created/1
user_has_been_deleted/1
user_has_been_updated/1
user_not_authenticated/1
Functions
invalid_credentials/1
signed_in/1
signed_out/1
user_already_authenticated/1
user_could_not_be_deleted/1
user_has_been_created/1
user_has_been_deleted/1
user_has_been_updated/1
user_not_authenticated/1
Pow.Phoenix.PlugErrorHandler
Summary
Functions
call/2
Pow.Phoenix.Router
Sections
Usage
Disable registration routes
Customize Pow routes
Summary
Functions
exprs/2
pow_route/5
pow_routes/0
validate_scope!/1
Pow.Phoenix.Routes
Sections
Usage
Summary
Callbacks
after_registration_path/1
after_sign_in_path/1
after_sign_out_path/1
after_user_deleted_path/1
after_user_updated_path/1
path_for/5
registration_path/2
session_path/3
url_for/5
user_already_authenticated_path/1
user_not_authenticated_path/1
Functions
after_registration_path/2
after_sign_in_path/2
after_sign_out_path/2
after_user_deleted_path/2
after_user_updated_path/2
path_for/5
url_for/5
user_already_authenticated_path/2
user_not_authenticated_path/2
Pow.Phoenix.SessionController
Summary
Functions
messages/1
routes/1
Pow.Phoenix.Template
Sections
Example
Summary
Functions
template/3
Pow.Phoenix.ViewHelpers
Summary
Functions
build_view_module/2
layout/1
Ecto extension
Pow.Extension.Ecto.Schema
Sections
Usage
Summary
Functions
assocs/1
attrs/1
changeset/3
indexes/1
require_schema_field!/3
validate!/2
Pow.Extension.Ecto.Schema.Base
Sections
Usage
Summary
Callbacks
assocs/1
attrs/1
changeset/3
indexes/1
validate!/2
Pow.Extension.Ecto.Schema.Migration
Summary
Functions
gen/1
new/4
Phoenix extension
Pow.Extension.Phoenix.Controller.Base
Sections
Usage
Pow.Extension.Phoenix.ControllerCallbacks
Sections
Usage
Pow.Extension.Phoenix.ControllerCallbacks.Base
Sections
Usage
Summary
Callbacks
before_process/4
before_respond/4
Pow.Extension.Phoenix.Messages
Sections
Usage
Pow.Extension.Phoenix.Router
Sections
Usage
Customize Pow extension routes
Summary
Functions
pow_extension_routes/0
Pow.Extension.Phoenix.Router.Base
Sections
Usage
Summary
Callbacks
routes/1
Store handling
Pow.Store.Backend.Base
Sections
Usage
Summary
Types
config/0
key/0
key_match/0
record/0
Callbacks
all/2
delete/2
get/2
put/2
Pow.Store.Backend.EtsCache
Sections
Configuration options
Summary
Functions
child_spec/1
start_link/1
Pow.Store.Backend.MnesiaCache
Sections
Distribution
Usage
Initialization options
Configuration options
Summary
Functions
child_spec/1
start_link/1
Pow.Store.Backend.MnesiaCache.Unsplit
Sections
Usage
Auto initialize cluster
Strategy for multiple libraries using the Mnesia instance
Initialization options
Summary
Functions
child_spec/1
start_link/1
Pow.Store.Base
Sections
Usage
Summary
Types
config/0
key/0
key_match/0
record/0
Callbacks
all/2
delete/2
get/2
put/3
Functions
put/3
Pow.Store.CredentialsCache
Sections
Custom credentials cache module
Configuration options
Summary
Callbacks
put/3
sessions/2
users/2
Functions
backend_config/1
delete/2
get/2
put/3
sessions/2
users/2
Mix helpers
Mix.Pow
Summary
Functions
app_base/1
context_lib_path/2
ensure_ecto!/2
ensure_phoenix!/2
inject_files/1
no_umbrella!/1
parse_options/3
schema_options_from_args/1
Mix.Pow.Ecto.Migration
Summary
Functions
create_migration_file/3
Mix.Pow.Extension
Summary
Functions
extensions/2
no_extensions_error/1
Mix.Pow.Phoenix
Summary
Functions
create_template_module/4
create_templates/4
parse_structure/1
Mix.Pow.Phoenix.Mailer
Summary
Functions
create_mail_module/4
PowEmailConfirmation
PowEmailConfirmation.Ecto.Context
Summary
Functions
confirm_email/3
current_email_unconfirmed?/2
get_by_confirmation_token/2
pending_email_change?/2
PowEmailConfirmation.Ecto.Schema
Sections
Customize PowEmailConfirmation fields
Summary
Functions
changeset/3
confirm_email_changeset/2
PowEmailConfirmation.Phoenix.ControllerCallbacks
Summary
Functions
messages/1
routes/1
send_confirmation_email/2
PowEmailConfirmation.Phoenix.Messages
Summary
Functions
email_confirmation_failed/1
email_confirmation_required/1
email_confirmation_required_for_update/1
email_has_been_confirmed/1
invalid_token/1
PowEmailConfirmation.Plug
Summary
Functions
confirm_email/2
email_unconfirmed?/1
load_user_by_token/2
pending_email_change?/1
sign_confirmation_token/2
PowPersistentSession
PowPersistentSession.Plug
Summary
Functions
create/2
delete/1
PowPersistentSession.Plug.Base
Sections
Configuration options
Summary
Callbacks
authenticate/2
call/2
create/3
init/1
Functions
store/1
PowPersistentSession.Plug.Cookie
Sections
Example
Configuration options
Custom metadata
Summary
Functions
authenticate/2
create/3
delete/2
PowResetPassword
PowResetPassword.Phoenix.Messages
Summary
Functions
email_has_been_sent/1
invalid_token/1
maybe_email_has_been_sent/1
password_has_been_reset/1
user_not_found/1
PowResetPassword.Plug
Summary
Functions
change_user/2
create_reset_token/2
load_user_by_token/2
update_user_password/2
PowInvitation
PowInvitation.Ecto.Context
Summary
Functions
create/3
get_by_invitation_token/2
update/3
PowInvitation.Ecto.Schema
Sections
Customize PowInvitation associations or fields
Customize PowInvitation changeset
Summary
Functions
accept_invitation_changeset/2
invitation_token_changeset/1
invite_changeset/3
invited_by_changeset/2
PowInvitation.Phoenix.Messages
Summary
Functions
invalid_invitation/1
invitation_email_sent/1
PowInvitation.Plug
Summary
Functions
change_user/2
create_user/2
load_invited_user_by_token/2
sign_invitation_token/2
update_user/2
mix pow
mix pow.ecto.gen.migration
Sections
Arguments
mix pow.ecto.gen.schema
Sections
Arguments
mix pow.ecto.install
Sections
Arguments
mix pow.extension.ecto.gen.migrations
Sections
Arguments
mix pow.extension.phoenix.gen.templates
Sections
Arguments
mix pow.extension.phoenix.mailer.gen.templates
Sections
Arguments
mix pow.install
mix pow.phoenix.gen.templates
Sections
Arguments
mix pow.phoenix.install
Sections
Arguments
Search documentation of Pow
Settings
View Source
mix pow
(Pow v1.0.39)
Prints Pow tasks and their information.
mix
pow
copy
×