Skip to content

Commit

Permalink
Merge pull request #41 from RaspberryPiFoundation/hydra-request
Browse files Browse the repository at this point in the history
Amend hydra request for v1
  • Loading branch information
ArayB authored Mar 29, 2022
2 parents 6fe6848 + 90ec492 commit ee00e86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/oauth_user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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['Authorization'] = "Basic #{ENV.fetch('HYDRA_SECRET')}"
req.headers['apiKey'] = ENV.fetch('HYDRA_SECRET')
req.body = { token: request.headers['Authorization'] }
end
JSON.parse(res.body)
Expand Down

0 comments on commit ee00e86

Please sign in to comment.