square / rails-auth

Modular resource-based authentication and authorization for Rails/Rack
Apache License 2.0
291 stars 23 forks source link

Make credentials idempotent #39

Closed tarcieri closed 8 years ago

tarcieri commented 8 years ago

Changes Rails::Auth::AlreadyAuthorizedError to only be raised if credentials actually conflict.

Setting the same credential twice for the same type is ignored.