in Education by
I am currently trying to access Jira REST with Jersey. The problem is that for our Jira a single sign on is set up. Authentication with "client.addFilter(new HTTPBasicAuthFilter(..." does not work. If I access Jira via browser and then hardcode the received cookie into Jersey I am able to access Jira REST. My question would now be how to login with Jersey over SSO. From what I can see clicking "Login" on the SSO page just sends a POST request with a request body like "username=&password=&login-form-type=pwd". So I should be able to retrieve a cookie with Jersey the same way I guess... Cheers! JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
I managed to get it done with Selenium Ghost Driver. DesiredCapabilities caps = new DesiredCapabilities(); caps.setCapability(PhantomJSDriverService.PHANTOMJS_EXECUTABLE_PATH_PROPERTY, "/Path/to/bin/phantomjs"); driver = new PhantomJSDriver(caps); Afterwards I use the driver to enter username and password, log in, get the new cookie and then use this cookie with Jersey. Might not be the ideal way but it works. How to run ghostdriver with Selenium using java

Related questions

0 votes
    I am using jersey, and I want to send (in a POST) a list of objects to the server. This is ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 18, 2022 in Education by JackTerrance
0 votes
    I need to create JWT token authentication, but I don't know how, could you explain me how to do ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 17, 2022 in Education by JackTerrance
0 votes
    I need to find a way to force Apache to ask users for credentials for each ressource they ask for ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 27, 2022 in Education by JackTerrance
0 votes
    In our organization we are developing an ldap based Authentication, and Authorization with Single Sign On on ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 27, 2022 in Education by JackTerrance
0 votes
    The Salesforce.com API seems to assume that you will always use the app as an active user. Their ... require user interaction? Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    The Salesforce.com API seems to assume that you will always use the app as an active user. Their ... require user interaction? Select the correct answer from above options...
asked Feb 5, 2022 in Education by JackTerrance
0 votes
    The ___________________ is a standard for exchanging authentication and authorization information between different ... Database Programming Techniques of Database Management...
asked Oct 10, 2021 in Education by JackTerrance
0 votes
    What are the authentication modes in ASP.NET for security?...
asked Apr 7, 2021 in Education by JackTerrance
0 votes
    If you had enabled a Conditional Access Policy for External Users using multi-factor authentication, and then also ... users, would they trigger both when accessing content?...
asked Mar 10, 2021 in Technology by JackTerrance
0 votes
    ______ provides authentication at the IP level. A. ESP B. AH C. SSL D. PGP...
asked Mar 12, 2023 in Technology by JackTerrance
0 votes
    Which two types of encryption protocols can be used to secure the authentication of computers using IPsec? A. SHA B. Kerberos V5 C. Both SHA and MD5 D. MD5...
asked Mar 12, 2023 in Technology by JackTerrance
0 votes
    I have an application I'm building with Firebase. Essentially, I'm trying to build an authentication system ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 18, 2022 in Education by JackTerrance
...