A Ruby On Rails template for an API only application. Contains authorization, authentication and test framework setup.
Version 7.0
MySQL
Style is enforced with Rubocop with Rubocop Rails configuration.
HATEOAS Why HATEOAS is Useless and what that means for REST
Might consider this in the future: Follows JSON:API formatting. JSON:API
Rspec, included via rspec-rails.
factory-bot
shoulda-matchers
pundit-matchers
pundit
OWASP indicates that JWT is an emerging standard for security tokens: OWASP
Using HMAC with SHA-512 ("alg" value = "HS512"). Application is a single verifier, so don't need asymmetric keys.
JWT is handled by jwt_rails
Wrapped by JwtManager to set defaults, add revocation.
Add Pundit auth to controllers Add json response for auth errors render_error_payload(...)
Add Authentication, specs
User, Token responses Pagination, filtering on resources