lib/rails/auth/x509/certificate.rb in rails-auth-0.3.0 vs lib/rails/auth/x509/certificate.rb in rails-auth-0.4.0

- old
+ new

@@ -33,9 +33,19 @@ def ou @subject["OU".freeze] end alias organizational_unit ou + + # Generates inspectable attributes for debugging + # + # @return [Hash] hash containing parts of the certificate subject (cn, ou) + def attributes + { + cn: cn, + ou: ou + } + end end end end end