Spec-Zone.ru › Phoenix

Introduction to Auth

Source

Authentication (authn) and authorization (authz) are two important concepts in security. Authentication is the process of verifying the identity of a user or system, while authorization is the process of granting or denying access to resources based on the user's identity and permissions.

Phoenix comes with built-in support for both. Generally speaking, developers use the mix phx.gen.auth generator to scaffold their authn and authz. Third-party libraries such as Ueberauth can be used either as complementary systems or by itself.

Overall we have the following guides:

  • mix phx.gen.auth - An introduction to the mix phx.gen.auth generator and its security considerations.

  • Scopes - Scopes are the mechanism Phoenix v1.8 introduced to manage access to resources based on the user's identity and permissions.

  • API Authentication - An additional guide that shows how to expand mix phx.gen.auth code to support token-based API authentication.

← Previous Page 6. FAQ
Next Page → mix phx.gen.auth

Hex Package Hex Preview (current file) Download ePub version

Built using ExDoc (v0.40.3) for the Elixir programming language

© 2014 Chris McCord
Licensed under the MIT License.
https://phoenix.hexdocs.pm/authn_authz.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API