Fix OpenID Connect TokenEndpoint when client id is not found

This commit is contained in:
Benjamin Neff 2017-08-06 20:27:33 +02:00
parent 385ab76077
commit 1adb4837ef
No known key found for this signature in database
GPG key ID: 971464C3F1A90194

View file

@ -50,7 +50,7 @@ module Api
end
def app_valid?(o_auth_app, req)
o_auth_app.client_secret == req.client_secret
o_auth_app.try(:client_secret) == req.client_secret
end
end
end