shib-http-client is a lightweight, portable, and open-source web-based tool made using Java. It works as a wrapper around the Apache HTTPClient project.
This software packs some cool features! It supports Shibboleth protection and uses a predefined IdP (identity provider). Users can easily log in to the identity provider with HTTP basic authentication. Plus, it gives you the option to disable all certificate checks if you need to.
Using this software is simple. Here’s how it goes: You make a request to the service provider who needs to know your identity. Then, you ask your identity provider for a ticket that reveals who you are. After that, you hand over this ticket to the service provider, and they’ll respond to your request!
If you want to get started with shib-http-client, you'll need to install it on your GNU/Linux system. You can download the latest source code from GitHub or grab it from Softpedia or Maven Central. Just save it wherever you like and extract the tar package contents.
You have options! You can either download shib-http-client as a JAR package or add it as a dependency in your Maven project like this:
<dependency>
<groupId>de.tudarmstadt.ukp.shibhttpclient</groupId>
<artifactId>shib-http-client</artifactId>
<version>1.0.0</version>
</dependency>
If you’d like to see how shib-http-client works in action, check out this example:
// Initialize OpenSAML
DefaultBootstrap.bootstrap();
// The last argument means we accept any certificate
HttpClient client = new ShibHttpClient(aIdpUrl, aUsername, aPassword, true);
HttpGet req = new HttpGet("https://my/protected/url");
HttpResponse res = client.execute(req);
... = res.getEntity().getContent(); // returns an InputStream
If you're ready to dive in and explore more about this awesome tool, don't forget to check out its page at Softpas.
Go to the Softpas website, press the 'Downloads' button, and pick the app you want to download and install—easy and fast!
SoftPas is your platform for the latest software and technology news, reviews, and guides. Stay up to date with cutting-edge trends in tech and software development.
Subscribe to newsletter
© Copyright 2024, SoftPas, All Rights Reserved.