Class: Auth0::Verifier::Jwks
- Inherits:
-
Object
- Object
- Auth0::Verifier::Jwks
- Defined in:
- lib/auth0/verifier/jwks.rb
Instance Attribute Summary collapse
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url) ⇒ Jwks
constructor
A new instance of Jwks.
- #keys ⇒ Object
Constructor Details
#initialize(url) ⇒ Jwks
Returns a new instance of Jwks.
14 15 16 |
# File 'lib/auth0/verifier/jwks.rb', line 14 def initialize(url) @url = url end |
Instance Attribute Details
#url ⇒ Object (readonly)
Returns the value of attribute url.
12 13 14 |
# File 'lib/auth0/verifier/jwks.rb', line 12 def url @url end |
Instance Method Details
#keys ⇒ Object
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/auth0/verifier/jwks.rb', line 18 def keys return unless data jwks_keys = Array(data['keys']) jwks_keys.each_with_object({}) do |key, object| next unless key['alg'] == 'RS256' object[key['kid']] = key_certificate(key) end end |