By: Lindsay Weir Account Admin 02 May 2024 at 10:41 p.m. CDT

1 Response
Lindsay Weir gravatar
I am looking to find the documentation for the common org.gluu.X classes. I am trying to convert my python based (Jython) login scripts that ran requests/urllib3 with ssl under Gluu 3 to using the native Jython classes (since SSL doesn't work with requests package on Jython 2.7.3). I am trying to find the options to the classes: - http_response.getStatusLine().getStatusCode() and want to find the other methods available to read the Location (for redirects). The request to an external site has a series of 302 redirects that happen. Python and requests module would follow the redirects until the final page would be returned - 200 status. Using the Java classes below: http_service_response = httpService.executePost(http_client, signin_url, None, headers, encoded_payload) http_response = http_service_response.getHttpResponse() will return the first page with a 302 redirect. Is there a way to make the POST follow all the redirects automatically and return the final page (200 or 40X if it fails etc)? Otherwise, I need to know where the above common classes are documented so I can follow the redirects automatically programatically. I can find the documentation for org.gluu.oxauth classes on https://github.com/GluuFederation but not the common classes found in the interception scripts.

By Michael Schwartz Account Admin 12 May 2024 at 9:54 p.m. CDT

Michael Schwartz gravatar
There are a bunch of script examples here: https://github.com/GluuFederation/oxAuth/tree/master/Server/integrations and some of the web assets for these scripts are here: https://github.com/GluuFederation/oxAuth/tree/master/Server/src/main/webapp This is outside the scope of what is supported by the SMB license.