{"repo":"podium/simple_token_authentication","free":true,"listed":false,"github":"https://github.com/podium/simple_token_authentication","clone":"git clone https://github.com/podium/simple_token_authentication.git","description":"Elixir Plug that checks for presence of a simple token for authentication","language":"Elixir","stars":14,"topics":["authentication","elixir","elixir-lang","phoenix","phoenix-framework","simple-auth"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"SimpleTokenAuthentication Usage Phoenix Integration Inside web/router.ex file, add plug to your pipeline like so: Installation 1. Add simple token authentication to your list of dependencies in mix.exs : 2. Ensure simple token authentication is started before your application: 3. Configure your token in config.exs : 4. Configure your connecting application to pass a token in the authorization header, e.g.: Realm Optionally, you can add a realm to the simple auth. This allows services to use the plug multiple times with different realms For example: Configure your token under a named realm in config.exs : Pass that name when configuring the plug: Notes - Token value can be a comma-separated list of tokens - Specifying service tokens is optional - Auth will succeed if token exists in either list ( token or service tokens ) - Use of a service token will add \"service name\" to Logging.metadata - Service can be identified in the conn.assigns[:simple token auth service]. Will be the name of the service or :global when matching the token key Copyright and License Copyright (c) 2025 Podium This work is free. You can redistribute it and/or modify it under the terms of the MIT License. See the LICENSE.md file for more details.","default_branch":null,"files":null,"tree":[],"storefront":"/r/podium","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/podium/simple_token_authentication/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}