Authenticate with your service Provider and Active Directory Federation Services (ADFS) from a command line.
Features:
- Fetch content of the protected resource
pyadfsclient depends on requests
and lxml
libraries.
The easiest way to install your dependencies is via pip::
$ pip install --upgrade -r requirements.txt
Make sure you meet all required dependencies and smply run ./adfs-client
Simply call ./adfs-client with appripriate options (see --help for more details).
You can also export following environment variables and run your client params-free::
-
ADFS_USER - ADFS user
-
ADFS_PASSWORD - ADFS password
-
ADFS_URL - ADFS URL, e.g. https://example.com/adfs/services/trust/13/usernamemixed
-
SP_ENDPOINT - Service Provider's endpoint, e.g. https://sp.example.com/Shibboleth.sso/ADFS
-
SP_URL - Service Provider's protected URL, e.g. https://sp.example.com/secure
You can pass your own CA certificates by setting proper requests' environment
variable - REQUESTS_CA_BUNDLE.
For more information examine
requests documentation