lib/grape/jwt/authentication/rsa_public_key.rb in grape-jwt-authentication-1.0.1 vs lib/grape/jwt/authentication/rsa_public_key.rb in grape-jwt-authentication-1.1.0
- old
+ new
@@ -59,9 +59,10 @@
# location.
#
# @return [String] The encoded public key
def fetch_encoded_key
raise ArgumentError, 'No URL for RsaPublicKey configured' unless url
+
if remote?
HTTParty.get(url).body
else
File.read(url)
end