Return an JSON error response for invalid jwks_uri

This commit is contained in:
theworldbright 2015-11-06 17:20:27 -08:00
parent 3440709ec5
commit 7865a30fec

View file

@ -14,6 +14,10 @@ module Api
validation_fail_redirect_uri(e)
end
rescue_from OpenSSL::SSL::SSLError do |e|
validation_fail_as_json(e)
end
def create
registrar = OpenIDConnect::Client::Registrar.new(request.url, params)
client = Api::OpenidConnect::OAuthApplication.register! registrar