├── .gitignore ├── .travis.yml ├── Changelog.md ├── LICENSE.md ├── README.md ├── config ├── config.exs ├── dev.exs └── test.exs ├── lib ├── phoenix_token_auth.ex └── phoenix_token_auth │ ├── account_updater.ex │ ├── authenticator.ex │ ├── confirmator.ex │ ├── controllers │ ├── account_controller.ex │ ├── password_resets_controller.ex │ ├── sessions_controller.ex │ └── users_controller.ex │ ├── helpers │ ├── mailing_behaviour.ex │ ├── poison_json.ex │ └── user_helper.ex │ ├── mailer.ex │ ├── password_resetter.ex │ ├── plug.ex │ ├── registrator.ex │ └── util.ex ├── mix.exs ├── mix.lock └── test ├── authenticator_test.exs ├── confirmation_test.exs ├── confirmator_test.exs ├── login_test.exs ├── plug_test.exs ├── poison_helper_test.exs ├── registrator_test.exs ├── reset_password_test.exs ├── sign_up_test.exs ├── support ├── ecto_helper.exs ├── forge.exs ├── mailing_helper.exs └── router_helper.exs ├── test_helper.exs └── update_account_test.exs /.gitignore: -------------------------------------------------------------------------------- 1 | /_build 2 | /deps 3 | erl_crash.dump 4 | *.ez 5 | /doc 6 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manukall/phoenix_token_auth/HEAD/.travis.yml -------------------------------------------------------------------------------- /Changelog.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manukall/phoenix_token_auth/HEAD/Changelog.md -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manukall/phoenix_token_auth/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manukall/phoenix_token_auth/HEAD/README.md -------------------------------------------------------------------------------- /config/config.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manukall/phoenix_token_auth/HEAD/config/config.exs -------------------------------------------------------------------------------- /config/dev.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manukall/phoenix_token_auth/HEAD/config/dev.exs -------------------------------------------------------------------------------- /config/test.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manukall/phoenix_token_auth/HEAD/config/test.exs -------------------------------------------------------------------------------- /lib/phoenix_token_auth.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manukall/phoenix_token_auth/HEAD/lib/phoenix_token_auth.ex -------------------------------------------------------------------------------- /lib/phoenix_token_auth/account_updater.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manukall/phoenix_token_auth/HEAD/lib/phoenix_token_auth/account_updater.ex -------------------------------------------------------------------------------- /lib/phoenix_token_auth/authenticator.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manukall/phoenix_token_auth/HEAD/lib/phoenix_token_auth/authenticator.ex -------------------------------------------------------------------------------- /lib/phoenix_token_auth/confirmator.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manukall/phoenix_token_auth/HEAD/lib/phoenix_token_auth/confirmator.ex -------------------------------------------------------------------------------- /lib/phoenix_token_auth/controllers/account_controller.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manukall/phoenix_token_auth/HEAD/lib/phoenix_token_auth/controllers/account_controller.ex -------------------------------------------------------------------------------- /lib/phoenix_token_auth/controllers/password_resets_controller.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manukall/phoenix_token_auth/HEAD/lib/phoenix_token_auth/controllers/password_resets_controller.ex -------------------------------------------------------------------------------- /lib/phoenix_token_auth/controllers/sessions_controller.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manukall/phoenix_token_auth/HEAD/lib/phoenix_token_auth/controllers/sessions_controller.ex -------------------------------------------------------------------------------- /lib/phoenix_token_auth/controllers/users_controller.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manukall/phoenix_token_auth/HEAD/lib/phoenix_token_auth/controllers/users_controller.ex -------------------------------------------------------------------------------- /lib/phoenix_token_auth/helpers/mailing_behaviour.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manukall/phoenix_token_auth/HEAD/lib/phoenix_token_auth/helpers/mailing_behaviour.ex -------------------------------------------------------------------------------- /lib/phoenix_token_auth/helpers/poison_json.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manukall/phoenix_token_auth/HEAD/lib/phoenix_token_auth/helpers/poison_json.ex -------------------------------------------------------------------------------- /lib/phoenix_token_auth/helpers/user_helper.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manukall/phoenix_token_auth/HEAD/lib/phoenix_token_auth/helpers/user_helper.ex -------------------------------------------------------------------------------- /lib/phoenix_token_auth/mailer.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manukall/phoenix_token_auth/HEAD/lib/phoenix_token_auth/mailer.ex -------------------------------------------------------------------------------- /lib/phoenix_token_auth/password_resetter.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manukall/phoenix_token_auth/HEAD/lib/phoenix_token_auth/password_resetter.ex -------------------------------------------------------------------------------- /lib/phoenix_token_auth/plug.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manukall/phoenix_token_auth/HEAD/lib/phoenix_token_auth/plug.ex -------------------------------------------------------------------------------- /lib/phoenix_token_auth/registrator.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manukall/phoenix_token_auth/HEAD/lib/phoenix_token_auth/registrator.ex -------------------------------------------------------------------------------- /lib/phoenix_token_auth/util.ex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manukall/phoenix_token_auth/HEAD/lib/phoenix_token_auth/util.ex -------------------------------------------------------------------------------- /mix.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manukall/phoenix_token_auth/HEAD/mix.exs -------------------------------------------------------------------------------- /mix.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manukall/phoenix_token_auth/HEAD/mix.lock -------------------------------------------------------------------------------- /test/authenticator_test.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manukall/phoenix_token_auth/HEAD/test/authenticator_test.exs -------------------------------------------------------------------------------- /test/confirmation_test.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manukall/phoenix_token_auth/HEAD/test/confirmation_test.exs -------------------------------------------------------------------------------- /test/confirmator_test.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manukall/phoenix_token_auth/HEAD/test/confirmator_test.exs -------------------------------------------------------------------------------- /test/login_test.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manukall/phoenix_token_auth/HEAD/test/login_test.exs -------------------------------------------------------------------------------- /test/plug_test.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manukall/phoenix_token_auth/HEAD/test/plug_test.exs -------------------------------------------------------------------------------- /test/poison_helper_test.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manukall/phoenix_token_auth/HEAD/test/poison_helper_test.exs -------------------------------------------------------------------------------- /test/registrator_test.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manukall/phoenix_token_auth/HEAD/test/registrator_test.exs -------------------------------------------------------------------------------- /test/reset_password_test.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manukall/phoenix_token_auth/HEAD/test/reset_password_test.exs -------------------------------------------------------------------------------- /test/sign_up_test.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manukall/phoenix_token_auth/HEAD/test/sign_up_test.exs -------------------------------------------------------------------------------- /test/support/ecto_helper.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manukall/phoenix_token_auth/HEAD/test/support/ecto_helper.exs -------------------------------------------------------------------------------- /test/support/forge.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manukall/phoenix_token_auth/HEAD/test/support/forge.exs -------------------------------------------------------------------------------- /test/support/mailing_helper.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manukall/phoenix_token_auth/HEAD/test/support/mailing_helper.exs -------------------------------------------------------------------------------- /test/support/router_helper.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manukall/phoenix_token_auth/HEAD/test/support/router_helper.exs -------------------------------------------------------------------------------- /test/test_helper.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manukall/phoenix_token_auth/HEAD/test/test_helper.exs -------------------------------------------------------------------------------- /test/update_account_test.exs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manukall/phoenix_token_auth/HEAD/test/update_account_test.exs --------------------------------------------------------------------------------