Skip to main content

saml2art

CLI tool which enables you to login and retrieve Artifactory credentials using OKTA Identity Provider.

The process is:

  • Configure Okta app url, Artifactory host, username
  • Prompt user for credentials
  • Log in to Okta Identity Provider using form based authentication
  • Build a SAML assertion
  • Login to Artifactory using the SAML assertion and retrieve a session cookie
  • Generate API Key
  • Store it in a netrc file (~/.netrc)

Installation and usage

Installation

saml2art can be installed by running pip install saml2art. It requires Python 3.7.0+.

Usage

Configuration

This step needs to be run first

The configuration is stored by default in "~/.saml2art"

usage: saml2art configure [-h] [--artifactory-host ARTIFACTORYURL]
                          [--okta-app-url OKTAAPPURL] [--username USERNAME]

optional arguments:
  -h, --help            show this help message and exit
  --artifactory-host ARTIFACTORYURL
                        Your Artifactory host
  --okta-app-url OKTAAPPURL
                        Your Artifactory Okta app url
  --username USERNAME   Your IdP username

Login

The login command will connect to OKTA and obtain a SAML assertion. Then it will login to Artifactory and create an API Key for you.

The API Key will be stored in ~/.netrc with the Artifactory host name.

The recommended way is to run - saml2art login

You will be prompted for the password in the terminal.

usage: saml2art login [-h] [--password PASSWORD]

optional arguments:
  -h, --help           show this help message and exit
  --password PASSWORD  Your IdP password

Release files for saml2art 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for saml2art 0.0.6
File Size Uploaded
saml2art-0.0.6.tar.gz 7.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for saml2art 0.0.6
File Interpreter ABI Platform
saml2art-0.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 16.5 kB

Release files / saml2art-0.0.6.tar.gz

Download URL saml2art-0.0.6.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ffd437385f715a9b7072f4b2f2d79a62e2d14efea880c95d8078be20bb695cf3
BLAKE2b-256 checksum
How to use checksums
55e64478bdc5b3f5f845d07ee67a66d3ce832dd46388369cb9c9869c04f16a02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release files / saml2art-0.0.6-py3-none-any.whl

Download URL saml2art-0.0.6-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a06c81a890a4260da4062d29463faaf29467c9ed9684c3fa800486506e08995f
BLAKE2b-256 checksum
How to use checksums
435a1a011305d77756054a9b305e4fc19de991145e207d24bf94dbd9d1e4d43e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page