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.

Usage

The oktaauth CLI requires a few arguments to operate.

# obtain a SAML response from Okta

$ oktaauth –username joebloggs –server acemeinc.okta.com –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:

https://acmeinc.okta.com/app/amazon_aws/exk5c0llc/sso/saml

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

Thanks

Thanks to Okta for help. I borrowed a lot of code from https://github.com/okta/okta-openvpn to handle the Okta API authentication flow.

Authors

  • 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.

Source Distribution

oktaauth-0.1.tar.gz (20.8 kB view hashes)

Uploaded Source

Built Distributions

oktaauth-0.1.linux-x86_64.tar.gz (8.0 kB view hashes)

Uploaded Source

oktaauth-0.1-py2.6.egg (10.5 kB view hashes)

Uploaded Source

Supported by

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