phoenix_token_auth
phoenix_token_auth copied to clipboard
Token authentication solution for Phoenix. Useful for APIs for e.g. single page apps.
Plug is not works in chanel (sockets), so there is no way to do Authorization in chanels. The easiest way it's to make `defp check_token` public and execute in chanel...
Is it possible to refresh token and implement "remember me" mode? And clarification about login (sorry for question mix in one ticket): Login by email and username return different JSON...
Hi, I'd like to use this library with MySQL, but MySQL doesn't support arrays. Would it kill the library if I changed the authentication_tokens column to a string? Ideally, I...
In https://github.com/manukall/phoenix_token_auth/blob/master/lib/phoenix_token_auth/registrator.ex , line 34, def set_hashed_password(changeset = %{errors: [_]}), do: changeset will not match in case of several errors. So, if the changeset has several errors, the hashed password...
When several errors occured, def set_hashed_password(changeset = %{errors: [_]) did not match. Then, it was matching the last definition, returning the hashed password
defp deps do [{:phoenix, "~> 1.0.2"}, {:phoenix_ecto, "~> 1.1"}, {:postgrex, ">= 0.0.0"}, {:phoenix_html, "~> 2.1"}, {:phoenix_live_reload, "~> 1.0", only: :dev}, {:cowboy, "~> 1.0"}, {:maru, "~> 0.8.1"}, {:maru_swagger, "~> 0.5", only:...
When a user resets their password, it automatically logs them into their account (i.e. doesn't check if their account is confirmed). If they log out and then try to later...
Recently we worked to add Token Generation and Verification to phoenix, it might be nice to reduce dependencies and use the built in version. EXAMPLE USAGE: https://github.com/phoenixframework/phoenix/blob/master/installer/templates/static/brunch/socket.js#L10-L52 Code: https://github.com/phoenixframework/phoenix/blob/master/lib/phoenix/token.ex
Lacks exception handling so far.
When testing the API response time for /api/users, I'm getting anywhere between 3.5 to 5 seconds. I am assuming this is due to Mailgun, so would it be possible to...