phx_gen_auth
credo
phx_gen_auth | credo | |
---|---|---|
6 | 8 | |
803 | 4,853 | |
- | - | |
4.4 | 9.3 | |
over 2 years ago | 12 days ago | |
Elixir | Elixir | |
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
phx_gen_auth
-
Build Interactive Phoenix LiveView UIs with Components
This code assumes you've used the Phoenix Auth generator to add authentication to your Phoenix app. The details of authentication aren't important for our purposes here. Just know that the survey route is a protected route that requires an authenticated user. This means that when a logged-in user points their browser at /survey, the SurveyLive view will mount with a session argument that contains a key of "user_token" pointing to a token we can use to identify the current user. The generator also gives us a function, Accounts.get_user_by_session_token(user_token), that we will use to fetch the user for that token.
-
LiveView Integration Tests in Elixir
We're also using a test helper provided for us by the Phoenix authentication generator—register_and_log_in_user/1. This function creates a conn struct with a logged-in user, a necessary step because visiting the /admin-dashboard route requires an authenticated user.
-
Best options for deploying your frontend and backend
Thanks for the suggestion. I started off with a Phoenix-only app but then I realised that it would be really nice to have a separate frontend. My Phoenix app was using phx.gen.auth, but according to the readme on their GH page, the `--no-html` option is not supported, so I'm thinking about trying POW. I've found this example which looks a little full-on, especially compared to how simple this is done in Django.
-
10 Years(-Ish) of Elixir
Thank you for your work on adding user registration and authorization to Phoenix!
I'm setting up a new Phoenix app for a side project this weekend and have just run Arron Renner's [auth generator](https://github.com/aaronrenner/phx_gen_auth). Having user registration out of the box will save a big chunk of time and energy!
-
How to connect Pow and Live View in your Phoenix project
Even though phx.gen.auth seems to be the hip solution for authentication at the moment in Phoenix land, I still prefer to use Pow for my small hobby projects and a side project I am working on. A short statement why I prefer Pow can be found at the end of the post.
credo
- Mais de 10 coisas para fazer antes de solicitar revisão do seu Pull Request
- Aprendizado Elixir - módulo 2
-
Catalog of Elixir-specific code smells
[Credo](https://hex.pm/packages/credo) comes with a nice set of default checks and it is straightforward to add your own.
-
A Guide to Secure Elixir Package Updates
A static code analysis tool with a focus on code consistency and teaching. Config: {:credo, "~> 1.6"} Locked version: 1.6.3 Releases: 1.6.3, 1.6.2, 1.6.1, 1.6.0, 1.6.0-rc.1, 1.6.0-rc.0, 1.5.6, 1.5.5, ... Licenses: MIT Links: Changelog: https://github.com/rrrene/credo/blob/master/CHANGELOG.md <--- Here GitHub: https://github.com/rrrene/credo
- Credo: Static code analysis tool for Elixir focusing on consistency and teaching
-
Modern PHP Cheat Sheet
[1] https://github.com/rrrene/credo/blob/master/lib/credo/check/...
-
excellent_migrations: Elixir lib for detecting unsafe db migrations
I've already been thinking about more focus on teaching and explanations. Ruby gem strong_migrations and credo are good examples of communicating such knowledge to devs.
-
10 Years(-Ish) of Elixir
Yes there is a formatter built into Mix, the Elixir build tool. There is also https://github.com/rrrene/credo which is not as extensive but does the same thing as ESLint.
What are some alternatives?
Pow - Robust, modular, and extendable user authentication system
dialyxir - Mix tasks to simplify use of Dialyzer in Elixir projects.
ueberauth - An Elixir Authentication System for Plug-based Web Applications
dogma - :closed_lock_with_key: A code style linter for Elixir
guardian - Elixir Authentication
coverex - Coverage Reports for Elixir
PowAssent - Multi-provider authentication for your Pow enabled app
excoveralls - Coverage report tool for Elixir with coveralls.io integration.
ueberauth_auth0 - Auth0 OAuth2 strategy for Überauth.
belvedere - An example of CircleCI integration with Elixir
ueberauth_active_directory
exprof - A simple code profiler for Elixir using eprof.