Skip to content

rails 4, rails-api, devise, doorkeeper, oauth, cancancan, rspec, puma, vcr, factory_girl, reqres_rspec, pg, dotenv, rack-cors, active_model_serializers, rubocop

Notifications You must be signed in to change notification settings

rilian/devise-doorkeeper-cancan-api-example

Repository files navigation

Example API

rails 4, rails-api, devise, doorkeeper, oauth, cancancan, rspec, puma, vcr, factory_girl, reqres_rspec, pg, dotenv, rack-cors, active_model_serializers, rubocop

Rails API with a nice User management via devise gem, with both frontend forms and JSON access, and with a token-based OAuth authentication via doorkeeper. Sample authorization is done with cancancan and also is tested.

As a bonus all the functionality is covered by integration specs with rspec

Features:

  • User Signup
  • Restore password
  • Modify own user profile
  • User password-based authentication
  • Client application authentication
  • Access with OAuth access_token
  • Generate new access_token via refresh_token
  • Authorization

About

rails 4, rails-api, devise, doorkeeper, oauth, cancancan, rspec, puma, vcr, factory_girl, reqres_rspec, pg, dotenv, rack-cors, active_model_serializers, rubocop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published