Class: PandaPal::Platform

Inherits:
Object
  • Object
show all
Defined in:
app/models/panda_pal/platform.rb

Direct Known Subclasses

Canvas

Defined Under Namespace

Classes: Canvas

Instance Method Summary collapse

Instance Method Details

#public_jwksObject



8
9
10
11
12
13
14
15
# File 'app/models/panda_pal/platform.rb', line 8

def public_jwks
  response = HTTParty.get(jwks_url)
  return nil unless response.success?

  JSON::JWK::Set.new(JSON.parse(response.body))
rescue
  nil
end