Modular resource-based authentication and authorization for Rails/Rack
13-Aug-2020 1242
Rails::Auth is a flexible library designed for both authentication (AuthN) and authorization (AuthZ) using Rack Middleware. It splits AuthN and AuthZ steps into separate middleware classes, using AuthN middleware to first verify credentials (such as X.509 certificates or cookies), then authorizing the request via separate AuthZ middleware that consumes these credentials, e.g. access control lists (ACLs).Rails::Auth can be used to authenticate and authorize end users using browser cookies, service-to-service requests using X.509 client certificates, or any other clients with credentials that have proper authenticating middleware.Despite what the name may lead you to believe, Rails::Auth also works well with other Rack-based frameworks like Sinatra.
Modular resource-based authentication and authorization for Rails/Rack #ruby #rubydeveloper #rubyonrails #Modular #resource-based #authentication #authorization #Rails/Rack #authentication #authorization https://rubyonrails.ba/link/modular-resource-based-authentication-and-authorization-for-rails-rack