Skip to main content

Authenticates from the CLI

Project description

The oktaauth module and command line interface allows users to authenticate with Okta and obtain a SAML assertion either from the command line or programmatically from another script.


The oktaauth CLI requires a few arguments to operate.

# obtain a SAML response from Okta

$ oktaauth –username joebloggs –server –apptype amazon_aws –appid exk5c0llc

The apptype and appid are provided by okta and would be seen in the url when going via a browser. For example:

There may be an easier way to obtain this. If you know then please submit a pull request to this README.


Thanks to Okta for help. I borrowed a lot of code from to handle the Okta API authentication flow.


  • Peter Gillard-Moss

Project details

Download files

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

Files for oktaauth, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size oktaauth-0.2-py2.6.egg (10.7 kB) File type Egg Python version 2.6 Upload date Hashes View
Filename, size oktaauth-0.2-py2-none-any.whl (7.2 kB) File type Wheel Python version 2.6 Upload date Hashes View
Filename, size oktaauth-0.2.tar.gz (20.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page