How do get SAML Response as Json from an Okta IDP?

Hi there,

I have a scenario, am trying to create a SAML Request using HTTP POST binding and i don’t want Okta login page just hit the Okta IDP or any other authentication API to give me logged in user or if user not logged in it will ask for authentication.

After successful authentication send me back SAML Response as json that i can use in my application.

I am using ruby-saml gem.

Himanshu Gupta