Skip to content

Conversation

ewr
Copy link
Contributor

@ewr ewr commented Jun 22, 2016

Add authorized!(env) and authorized?(env) to Rails::Auth. Outside middleware can use authorized! to mark a request as being exempt from the ACL check. Allows other authorization systems to play nicely on a per-request basis (for routes that they will already be authorizing, for instance).

…CL check

Add `authorized!(env)` and `authorized?(env)` to `Rails::Auth`. Outside
middleware can use `authorized!` to mark a request as being exempt from
the ACL check. Allows other authorization systems to play nicely on a
per-request basis.
@ewr ewr force-pushed the AddOverrideAuthorized branch from a1f6f29 to ae77ad0 Compare June 22, 2016 20:39
@tarcieri tarcieri merged commit 9c8c9f7 into square:master Jun 23, 2016
@tarcieri
Copy link
Contributor

👍 this should allow for multiple AuthZ middlewares, any one of which can authorize the request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants