cybertooth-io / ermahgerd-rails-api-jwt

Rails 5+ API, JWT_Session, Pundit, JSONAPI, Sidekiq, PostgreSQL.
0 stars 0 forks source link

Pundit Time #18

Closed nadnoslen closed 6 years ago

nadnoslen commented 6 years ago

Introduce pundit through jsonapi-authorization beta version of the gem.

Authorizing actions is now incorporated throughout. The ApplicationController will handle the FORBIDDEN (403) errors raised by the Pundit authorizations.

Pundit policies are now all unit tested.

New Base Controllers and Resources have been created.

I've added the SessionActivity model that collects the activity of every single request that a session makes. This can be turned off with an environment variable.

The README has been significantly enhanced to give instructions of how to use this project.