Skip to main content

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

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

saml2art-0.0.6.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

saml2art-0.0.6-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file saml2art-0.0.6.tar.gz.

File metadata

  • Download URL: saml2art-0.0.6.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for saml2art-0.0.6.tar.gz
Algorithm Hash digest
SHA256 ffd437385f715a9b7072f4b2f2d79a62e2d14efea880c95d8078be20bb695cf3
MD5 f1246b23eb6e42a960ab4d1ef139d4d6
BLAKE2b-256 55e64478bdc5b3f5f845d07ee67a66d3ce832dd46388369cb9c9869c04f16a02

See more details on using hashes here.

File details

Details for the file saml2art-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: saml2art-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for saml2art-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 a06c81a890a4260da4062d29463faaf29467c9ed9684c3fa800486506e08995f
MD5 806955dc2b13aa64c824a82c1ea8e368
BLAKE2b-256 435a1a011305d77756054a9b305e4fc19de991145e207d24bf94dbd9d1e4d43e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page