Method: Auth0::Mixins::Validation::Algorithm::RS256.jwks_url

Defined in:
lib/auth0/mixins/validation.rb

.jwks_url(url, lifetime: 10 * 60) ⇒ RS256

Create a new instance passing the JWK set url.

Parameters:

  • url (string)

    The url where the JWK set is located.

  • lifetime (integer) (defaults to: 10 * 60)

    The lifetime of the JWK set in-memory cache in seconds. Must be a non-negative value. Defaults to *600 seconds* (10 minutes).

Returns:

  • (RS256)

    A new instance.


296
297
298
# File 'lib/auth0/mixins/validation.rb', line 296

def jwks_url(url, lifetime: 10 * 60)
  new url, lifetime
end