{"id":31921330,"url":"https://github.com/kenfehling/omniauth-stateless","last_synced_at":"2026-05-15T22:05:37.895Z","repository":{"id":21227588,"uuid":"24542789","full_name":"kenfehling/omniauth-stateless","owner":"kenfehling","description":"Ruby gem for doing stateless authentication with omniauth","archived":false,"fork":false,"pushed_at":"2014-12-29T00:47:51.000Z","size":152,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-17T04:19:09.023Z","etag":null,"topics":["api","jwt","middleware","omniauth","rails","rest","ruby","stateless"],"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/kenfehling.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-27T21:07:40.000Z","updated_at":"2014-12-29T00:47:51.000Z","dependencies_parsed_at":"2022-08-31T02:51:37.728Z","dependency_job_id":null,"html_url":"https://github.com/kenfehling/omniauth-stateless","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kenfehling/omniauth-stateless","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenfehling%2Fomniauth-stateless","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenfehling%2Fomniauth-stateless/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenfehling%2Fomniauth-stateless/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenfehling%2Fomniauth-stateless/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kenfehling","download_url":"https://codeload.github.com/kenfehling/omniauth-stateless/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kenfehling%2Fomniauth-stateless/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017140,"owners_count":26085984,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["api","jwt","middleware","omniauth","rails","rest","ruby","stateless"],"created_at":"2025-10-13T22:45:17.898Z","updated_at":"2025-10-13T22:45:37.602Z","avatar_url":"https://github.com/kenfehling.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# omniauth-stateless\n\nHelps [OmniAuth](https://github.com/intridea/omniauth)\nto be used in a stateless manner (e.g. with REST APIs)\nby authenticating during each request.\n\n## Use case\n\nA REST API contains resources that require authentication through\nFacebook Single Sign-On on Android or iOS.\n\nNormally OmniAuth works by intercepting requests for certain paths\n(/auth/:provider/...) that are used for logging in and out. For stateless\napplications we essentially wish to log in during each request.\nThis gem provides Rack middleware for\nauthenticating on every request where credentials are provided.\n\n## Confirmed to work with these OmniAuth strategies\n\n* [omniauth-facebook-access-token](http://github.com/kenfehling/omniauth-facebook-access-token)\n* [omniauth-identity](https://github.com/intridea/omniauth-identity)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'omniauth-stateless'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install omniauth-stateless\n\n## Usage\n\nSet up omniauth as normal.\n\nAdd this to config/application.rb\n\n\tRails.application.config.middleware.use OmniAuth::Stateless::Builder\n\nAdd this to config/routes.rb\n\n\tmount OmniAuth::Stateless::Engine =\u003e '/'\n\t\nCreate your controller like this\n\t\n\tclass Api::ItemsController \u003c OmniAuth::Stateless::BaseController\n\t\tbefore_action :require_auth, only: [:create]\n\t\trespond_to :json\n\n\t\tdef create\n\t\t\t...\n\t\tend\n    end\n\nConnect from your client like this\n\u003e http://example.t.proxylocal.com/api/items?provider=facebook_access_token\u0026access_token=abcdefghijklmnop\n\n\u003e http://example.t.proxylocal.com/api/items?provider=identity\u0026auth_key=email\u0026password=password\n\n## Contributing\n\n1. Fork it\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 new pull request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenfehling%2Fomniauth-stateless","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkenfehling%2Fomniauth-stateless","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenfehling%2Fomniauth-stateless/lists"}