{"repo":"doorkeeper-gem/doorkeeper-provider-app","free":true,"listed":false,"github":"https://github.com/doorkeeper-gem/doorkeeper-provider-app","clone":"git clone https://github.com/doorkeeper-gem/doorkeeper-provider-app.git","description":"An example OAuth 2 provider application using the Doorkeeper gem, Rails and Devise","language":"Ruby","stars":192,"topics":["doorkeeper","ruby-on-rails","devise","rails","oauth2-server","oauth2","oauth2-provider"],"license":null,"category":"auth-billing-email","readme_excerpt":"Doorkeeper Provider App This app is an example of an OAuth 2 provider using Doorkeeper gem, Rails 7.x and Devise. About Doorkeeper Gem For more information about the gem, documentation, wiki and another resources, check out the project on GitHub Installation First clone the repository from GitHub: git clone git@github.com:doorkeeper-gem/doorkeeper-provider-app.git Install all dependencies with: bin/bundle install After that you're almost ready to go. Configuration The configuration is quite simple, all you need to do is run: bin/rails db:setup This will generate all necessary tables, create fake data, create an user and a client application. Seed data The generated user email is user@example.com and password is doorkeeper . The application id and secret will show up on terminal when the script ends. After that, you can just fire up the bin/rails server and you're ready to go. OAuth Endpoint The endpoints is mounted under /oauth so our routes look like this: GET /oauth/authorize POST /oauth/authorize DELETE /oauth/authorize POST /oauth/token resources /oauth/applications Example API This app provides a sample JSON API under /api/v1 . The current API endpoints are: /api/v1/profiles.json /api/v1/me.json In routes.rb you can check out how they're made: We namespace the API controllers to avoid name clashing and collisions between your existing application and the API. This way, you can make changes to your application without messing up with the API's behavior. You can find all c","default_branch":null,"files":null,"tree":[],"storefront":"/r/doorkeeper-gem","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/doorkeeper-gem/doorkeeper-provider-app/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}