Get query parameters from http.client.response
Hi everyone,
I'm trying to integrate data from an internal user profile application and I need to get an authentication code from our share SSO environment. I'm using http.client to make the request on an endpoint. So I make the request, the SSO environment validates that there's an active session and redirects me to a non-lithium URL (the application URL) with the authorization code embeded as a query parameter.
The problem is that I can't find a way to retrieve that query parameter or the redirect URL from http.client.response. I can only get the page content (is a blank page) and the response headers.
Do you know if there's a way to get the redirect URL from the context object? Has anyone tried to authenticate via OAuth 2.0 (and OpenID) to a "third party" application?
Thanks!