{"id":22914269,"url":"https://github.com/suse/faraday-middleware-bs-auth","last_synced_at":"2025-10-24T02:45:08.870Z","repository":{"id":209464641,"uuid":"722148664","full_name":"SUSE/faraday-middleware-bs-auth","owner":"SUSE","description":"Faraday Middleware for the Open Build Service","archived":false,"fork":false,"pushed_at":"2023-11-27T15:47:02.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":15,"default_branch":"main","last_synced_at":"2025-03-26T18:54:36.840Z","etag":null,"topics":["faraday","faraday-middleware","http-client","open-build-service"],"latest_commit_sha":null,"homepage":"","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/SUSE.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-11-22T14:37:16.000Z","updated_at":"2023-11-27T13:22:50.000Z","dependencies_parsed_at":"2023-11-27T14:40:07.753Z","dependency_job_id":null,"html_url":"https://github.com/SUSE/faraday-middleware-bs-auth","commit_stats":null,"previous_names":["suse/faraday-middleware-bs-auth"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SUSE%2Ffaraday-middleware-bs-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SUSE%2Ffaraday-middleware-bs-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SUSE%2Ffaraday-middleware-bs-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SUSE%2Ffaraday-middleware-bs-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SUSE","download_url":"https://codeload.github.com/SUSE/faraday-middleware-bs-auth/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246635945,"owners_count":20809330,"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":["faraday","faraday-middleware","http-client","open-build-service"],"created_at":"2024-12-14T05:14:11.873Z","updated_at":"2025-10-24T02:45:03.818Z","avatar_url":"https://github.com/SUSE.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Faraday::Middlewares::BuildService\n\nProvides a Faraday Middleware to interact with the [Open Build Service][obs].\n\nIt'll automatically retry a request with the authentication mechanism requested by the Build Service.\n\n## Installation\n\nInstall the gem and add to the application's Gemfile by executing:\n\n```bash\n$ bundle add faraday-middlewares-bs-auth\n```\n\nIf bundler is not being used to manage dependencies, install the gem by executing:\n\n```bash\n$ gem install faraday-middlewares-bs-auth\n```\n\n## Usage\n\n```ruby\n# For Basic Authentication\ncredentials = {\n    username: 'my-user',\n    password: 'my-password'\n}\n\n# For SSH Signature authentication\ncredentials = {\n    username: 'my-user',\n    ssh_key: '--- BEGIN ... KEY --- ...'\n}\n\nbase_url = \"https://build.opensuse.org/\"\n\nclient = Faraday.new(url: base_url) do |faraday|\n    faraday.use FaradayMiddleware::FollowRedirects\n    faraday.use Faraday::BuildService::Authentication, credentials: credentials\nend\n\n# then use faraday as usual:\nresponse = client.get('/about')\nputs response.headers\nputs response.body\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also 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`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/SUSE/faraday-middlewares-build_service. This project is intended to be a safe, welcoming space for collaboration.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n[obs]: https://openbuildservice.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuse%2Ffaraday-middleware-bs-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuse%2Ffaraday-middleware-bs-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuse%2Ffaraday-middleware-bs-auth/lists"}