{"id":15403952,"url":"https://github.com/pluff/grape-devise","last_synced_at":"2026-03-15T01:09:56.183Z","repository":{"id":19156476,"uuid":"22387845","full_name":"pluff/grape-devise","owner":"pluff","description":"Devise integration gem for Grape API framework","archived":false,"fork":false,"pushed_at":"2014-07-29T17:19:50.000Z","size":152,"stargazers_count":22,"open_issues_count":4,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-16T13:04:07.214Z","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/pluff.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-07-29T16:56:09.000Z","updated_at":"2024-11-28T16:29:46.000Z","dependencies_parsed_at":"2022-09-04T00:11:38.537Z","dependency_job_id":null,"html_url":"https://github.com/pluff/grape-devise","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pluff/grape-devise","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pluff%2Fgrape-devise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pluff%2Fgrape-devise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pluff%2Fgrape-devise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pluff%2Fgrape-devise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pluff","download_url":"https://codeload.github.com/pluff/grape-devise/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pluff%2Fgrape-devise/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279108668,"owners_count":26105589,"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-15T02:00:07.814Z","response_time":56,"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":[],"created_at":"2024-10-01T16:10:47.806Z","updated_at":"2025-10-15T19:42:25.087Z","avatar_url":"https://github.com/pluff.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Grape::Devise\n\nThis gem attempts to integrate Devise into Grape in native Grape fashion.\nDevise has great model modules, warden strategies etc so it's really tempts to use it when building APIs.\nHowever devise controller layer doesn't fit well with Grape. Here where `grape-devise` comes to the rescue.\n\nGem benifits:\n\n* native Grape integration\n* ready-to-use set of helpers as well-known `current_user`\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'grape-devise'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install grape-devise\n\n## Usage\n\n1. First of all you need to setup devise as usual. See ( https://github.com/plataformatec/devise#getting-started )\n1. Add `Grape::Devise::Helpers` helpers and include `Grape::Devise::Endpoints` module into your API endpoints class e.g.\n\n  ```\n  class MyApi \u003c Grape::API\n    helpers Grape::Devise::Helpers\n    include Grape::Devise::Endpoints\n  end\n  ```\n  \n1. Remove Devise routes from `routes.rb` file. We will use Grape-styled endpoints for our API, not default Rails routes.\n1. Add `Devise.add_mapping(:users, {})` to your `devise.rb` initializer. Consider replacing `:users` with appropriate symbol of your devise resource.\n1. Restart your server\n \n## TODO\n\n* Add support for every Devise module. Currently we have endpoints only for `:database_authenticatable`\n* Create Rails generator\n* Improve test coverage\n\n## Contributing\n\n1. Fork it ( https://github.com/pluff/grape-devise/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%2Fpluff%2Fgrape-devise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpluff%2Fgrape-devise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpluff%2Fgrape-devise/lists"}