In QAing an IDP integration, I've run into an issue where, if I persist and use a malformed x509 cert, I'm unable to rescue from that error since it gets raised before hitting my route
something like this doesn't work
post '/saml/:id/callback' do
#...
attributes = env['omniauth.auth']&.
extra&.
response_object&.
attributes
#...
rescue OpenSSL::X509::CertificateError
@error = 'Malformed x509 Certificate'
erb :error
end
I could see this also being addressed upstream in https://github.com/onelogin/ruby-saml or here, but wanted to first see if perhaps I'm misunderstanding something
In QAing an IDP integration, I've run into an issue where, if I persist and use a malformed x509 cert, I'm unable to rescue from that error since it gets raised before hitting my route
something like this doesn't work
I could see this also being addressed upstream in https://github.com/onelogin/ruby-saml or here, but wanted to first see if perhaps I'm misunderstanding something