diff --git a/app/helpers/oauth_user.rb b/app/helpers/oauth_user.rb index cd12594a..95308004 100644 --- a/app/helpers/oauth_user.rb +++ b/app/helpers/oauth_user.rb @@ -19,7 +19,7 @@ def hydra_request res = con.post do |req| req.url '/oauth2/introspect' req.headers['Content-Type'] = 'application/x-www-form-urlencoded' - req.headers['apiKey'] = ENV.fetch('HYDRA_SECRET').to_s + req.headers['apiKey'] = ENV.fetch('HYDRA_SECRET') req.body = { token: request.headers['Authorization'] } end JSON.parse(res.body)