Return an JSON error response for invalid jwks_uri
This commit is contained in:
parent
3440709ec5
commit
7865a30fec
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue