square / rails-auth

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

Make add_credential idempotent #26

Closed ewr closed 8 years ago

ewr commented 8 years ago

If called with the same type and credentials that return true for ==, don't raise an ArgumentError. Instead, return the existing env.

Add an == implementation to X509::Certificate, comparing the two objects via certificate.to_der.

Remove tabs when loading x509 pems via the pem filter.

Built on #25, so the diff will clean up once that merges.