{"id":13508120,"url":"https://github.com/azranel/plug_password","last_synced_at":"2025-04-01T16:30:49.442Z","repository":{"id":57534885,"uuid":"102215296","full_name":"azranel/plug_password","owner":"azranel","description":"Simple plug to secure your server with password","archived":false,"fork":false,"pushed_at":"2018-01-08T21:51:43.000Z","size":17,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-11T20:14:01.662Z","etag":null,"topics":["authentication","elixir","library","phoenix","plug"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/azranel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-02T18:19:14.000Z","updated_at":"2020-01-26T18:52:04.000Z","dependencies_parsed_at":"2022-09-26T18:21:41.362Z","dependency_job_id":null,"html_url":"https://github.com/azranel/plug_password","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azranel%2Fplug_password","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azranel%2Fplug_password/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azranel%2Fplug_password/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azranel%2Fplug_password/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/azranel","download_url":"https://codeload.github.com/azranel/plug_password/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246670465,"owners_count":20814989,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authentication","elixir","library","phoenix","plug"],"created_at":"2024-08-01T02:00:48.409Z","updated_at":"2025-04-01T16:30:49.173Z","avatar_url":"https://github.com/azranel.png","language":"Elixir","readme":"# PlugPassword\n\n[![Build Status](https://travis-ci.org/azranel/plug_password.svg?branch=master)](https://travis-ci.org/azranel/plug_password)\n\nSimple authentication plug based on [rack_password](https://github.com/netguru/rack_password).\nSimilary it will ask you for password only once and store it in your cookie (not like basic auth).\n\n[Hex.pm package](https://hex.pm/packages/plug_password)\n[HexDocs](https://hexdocs.pm/plug_password)\n\n## Installation\n\nThe package can be installed by adding `plug_password` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:plug_password, \"~\u003e 0.3.0\"}\n  ]\nend\n```\n\nthen plug it before your router:\n\n```elixir\nplug PlugPassword.Block, passwords: [\"hello\", world],\n  template: Authentication,\n  path_whitelist: ~r/users/,\n  ip_whitelist: [\"86.123.112.78\"],\n  custom_rule: \u0026Authentication.custom_rule/1\n\nplug PlugPasswordTestWeb.Router\n```\n\ncheck possible options to pass to plug in [HexDocs](https://hexdocs.pm/plug_password/PlugPassword.Block.html).\n","funding_links":[],"categories":["Framework Components"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazranel%2Fplug_password","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fazranel%2Fplug_password","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazranel%2Fplug_password/lists"}