{"id":28381756,"url":"https://github.com/opf/warden-basic_auth","last_synced_at":"2025-06-25T04:31:07.369Z","repository":{"id":31482983,"uuid":"35047106","full_name":"opf/warden-basic_auth","owner":"opf","description":"Warden base strategy for basic auth.","archived":false,"fork":false,"pushed_at":"2015-05-27T11:52:10.000Z","size":164,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-06-22T00:57:50.239Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/opf.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":"2015-05-04T16:51:58.000Z","updated_at":"2018-09-10T14:35:18.000Z","dependencies_parsed_at":"2022-08-21T02:20:18.541Z","dependency_job_id":null,"html_url":"https://github.com/opf/warden-basic_auth","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/opf/warden-basic_auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opf%2Fwarden-basic_auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opf%2Fwarden-basic_auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opf%2Fwarden-basic_auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opf%2Fwarden-basic_auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opf","download_url":"https://codeload.github.com/opf/warden-basic_auth/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opf%2Fwarden-basic_auth/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261805042,"owners_count":23212290,"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":[],"created_at":"2025-05-30T04:06:25.134Z","updated_at":"2025-06-25T04:31:07.359Z","avatar_url":"https://github.com/opf.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Warden::BasicAuth\n\n[![Build Status](https://travis-ci.org/opf/warden-basic_auth.svg?branch=master)](https://travis-ci.org/opf/warden-basic_auth)\n[![Code Climate](https://codeclimate.com/github/opf/warden-basic_auth/badges/gpa.svg)](https://codeclimate.com/github/opf/warden-basic_auth)\n\nProvides a Warden base strategy for basic auth.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'warden-basic_auth', '~\u003e 0.1.0'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install warden-basic_auth\n\n## Usage\n\nSubclasses must simply define the method `#authenticate_user`.\nThe simplest possible implementation is the following example from the specs:\n\n```ruby\nclass TestBasicAuth \u003c Warden::Strategies::BasicAuth\n  def authenticate_user(username, password)\n    username == 'admin' \u0026\u0026 password == 'adminadmin'\n  end\nend\n```\n\nYou can register the strategy with Warden like this:\n\n```ruby\nWarden::Strategies.add :basic_auth, TestBasicAuth\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\n1. Fork it ( https://github.com/[my-github-username]/warden-basic_auth/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopf%2Fwarden-basic_auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopf%2Fwarden-basic_auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopf%2Fwarden-basic_auth/lists"}