Skip to main content

Library for verifying Yubikey One Time Passwords (OTPs)

Project description

Yubico Python Client

https://img.shields.io/pypi/v/yubico-client.svg https://img.shields.io/pypi/dm/yubico-client.svg https://secure.travis-ci.org/Kami/python-yubico-client.png?branch=master https://img.shields.io/pypi/pyversions/yubico-client.svg https://img.shields.io/pypi/wheel/yubico-client.svg https://img.shields.io/github/license/Kami/python-yubico-client.svg

Python class for verifying Yubico One Time Passwords (OTPs) based on the validation protocol version 2.0.

For more information and usage examples, please see the. documentation.

Documentation

Documentation is available at https://yubico-client.readthedocs.org/en/latest/

Installation

$ pip install yubico-client

Note: Package has been recently renamed from yubico to yubico-client and the main module has been renamed from yubico to yubico_client. This was done to avoid naming conflicts and make creation of distribution specific packages easier.

Running Tests

To run the tests use the tox command. This will automatically run the tests on all the supported Python versions.

$ tox

License

Yubico Client is distributed under the 3-Clause BSD License.

Changelog

1.10.0 - 2015-10-02

  • Fix compatibility issue with Python versions >= 3.0 <= 3.3 #22

  • Pin requests dependency to the latest version (2.7) #25 #27

    Contribution by Wouter van Bommel, Vianney Carel.

  • Make sure the query parameters are unquoted when parsing them from the response. #23

    Contribution by Tamás Gulácsi.

1.9.1 - 2014-02-05

  • Fix Python 3 compatibility issue. #21

1.9.0 - 2014-01-16

  • To discourage bad practices, remove use_https argument from the Yubico class constructor all together. Also update DEFAULT_API_URLS variable to contain full URLs with a scheme (e.g. https://api.yubico.com/wsapi/2.0/verify).

    If a user wants to use a custom non-https URL or URLs, they can still do that by passing api_urls argument with custom non-https URLs to the constructor.

  • Replace CA_CERTS_BUNDLE_PATH module level variable with a ca_certs_bundle_path argument which can be passed to the Yubico class constructor.

  • Update requests dependency from 1.2 to 2.2.

1.8.0 - 2013-11-09

  • Modify verify_multi method to throw if otp_list argument contains less than two items

  • Modify max_time_window argument in the verify_multi method to be in seconds (#19)

  • Modify verify_multi method to throw if delta between the first and last OTP timestamp is smaller than zero

  • Allow user to pass api_urls argument to the Yubico class constructor. This argument can contain a list of API urls which are used to validate the token. https://github.com/Kami/python-yubico-client/pull/18

    Contributed by Dain Nilsson

  • Depend on newer version (1.2.3) of the requests library.

  • Update code and tests so they also work under Python 3.3

1.7.0 - 2013-04-06

  • Change PyPi package name from yubico to yubico-client.

    This was done to prevent naming collisions and make creation of distribution specific packages (e.g. debian packages) easier.

1.6.2 - 2013-04-02

  • If there are multiple interpretations for a given OTP, first try to find the one which matches the input OTP. If the one is found, use the input OTP, otherwise use random interpretation. - https://github.com/Kami/python-yubico-client/issues/14

    Reported by Klas Lindfors

1.6.1 - 2013-03-19

1.6.0 - 2013-01-24

Project details


Download files

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

Source Distributions

yubico-client-1.10.0.zip (28.1 kB view details)

Uploaded Source

yubico-client-1.10.0.tar.gz (21.0 kB view details)

Uploaded Source

yubico-client-1.10.0.tar.bz2 (17.4 kB view details)

Uploaded Source

Built Distribution

yubico_client-1.10.0-py2.py3-none-any.whl (17.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file yubico-client-1.10.0.zip.

File metadata

  • Download URL: yubico-client-1.10.0.zip
  • Upload date:
  • Size: 28.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for yubico-client-1.10.0.zip
Algorithm Hash digest
SHA256 15468b77eee491ee611fdb4062fbb75af2481cec5e7e3ef51de460bbdf001d70
MD5 0eab40d53a759aaf463b63856a45c8c8
BLAKE2b-256 c8e163bbd97bbc5b24efa4a0e77e77df96f14c87fb0da46c54632b07e385379f

See more details on using hashes here.

File details

Details for the file yubico-client-1.10.0.tar.gz.

File metadata

File hashes

Hashes for yubico-client-1.10.0.tar.gz
Algorithm Hash digest
SHA256 a19131f36b650bb556bb4fcdd41bdf4f7543f04e900e27b1e737acbb6fae736a
MD5 a924da0f11acbea772076943358211ce
BLAKE2b-256 5fe1711d83e3db4f795ce5e8f947406c43b12726b22e13e7645cba64967200f7

See more details on using hashes here.

File details

Details for the file yubico-client-1.10.0.tar.bz2.

File metadata

File hashes

Hashes for yubico-client-1.10.0.tar.bz2
Algorithm Hash digest
SHA256 d3790d20b256b653a490188e176310236978fb818aef57faadd6749b591bdef3
MD5 439db7bc43aef12f7b28ffff5d20be27
BLAKE2b-256 3071d6fbcf342a42a7fd8bb2355cb427be4562c1bbb82e6838c31105c4e9a58d

See more details on using hashes here.

File details

Details for the file yubico_client-1.10.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for yubico_client-1.10.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fe092b55cb86413252027626211d20b79a1d7837c03f31bdca096c29260a6208
MD5 4fdbacc59005a3dae41ee63dfac89868
BLAKE2b-256 5484df4d201c1c4ccae9b8208403b686f302f88dd6bbbdf9c6c1ee4190644fc8

See more details on using hashes here.

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