• Stars
    star
    130
  • Rank 271,923 (Top 6 %)
  • Language
    Python
  • License
    Other
  • Created over 11 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Python library for interacting with the Duo Auth, Admin, and Accounts APIs

Overview

Build Status Issues Forks Stars License

Auth - https://www.duosecurity.com/docs/authapi

Admin - https://www.duosecurity.com/docs/adminapi

Accounts - https://www.duosecurity.com/docs/accountsapi

Activity - TBD (As of now, the activity endpoint is not in general availability and is restricted to a few customers for private preview. If you have any questions or need more information, feel free to reach out to support for guidance.)

Tested Against Python Versions

  • 3.7
  • 3.8
  • 3.9
  • 3.10
  • 3.11

Requirements

Duo_client_python supports Python 3.7 and higher

TLS 1.2 and 1.3 Support

Duo_client_python uses Python's ssl module and OpenSSL for TLS operations. Python versions 3.7 (and higher) have both TLS 1.2 and TLS 1.3 support.

Installing

Development:

$ git clone https://github.com/duosecurity/duo_client_python.git
$ cd duo_client_python
$ virtualenv .env
$ source .env/bin/activate
$ pip install --requirement requirements.txt
$ pip install --requirement requirements-dev.txt
$ python setup.py install

System:

Install from PyPi

$ pip install duo-client

Using

See the examples folder for how to use this library.

To run an example query, execute a command like the following from the repo root:

$ python examples/report_users_and_phones.py

Testing

$ nose2

Linting

$ flake8

More Repositories

1

duo_unix

Duo two-factor authentication for Unix systems
C
341
star
2

duo_python

Duo two-factor authentication for Python web applications
JavaScript
95
star
3

duo_php

Duo two-factor authentication for PHP web applications
JavaScript
83
star
4

duo_openvpn

Duo two-factor authentication for OpenVPN.
Python
65
star
5

duo_api_golang

Go
53
star
6

duo_nodejs

Duo two-factor authentication for web Node.js applications
JavaScript
46
star
7

duo_log_sync

Python
34
star
8

duo_wordpress

Duo two-factor authentication for WordPress logins
PHP
31
star
9

duo_java

Duo two-factor authentication for Java web applications
Java
30
star
10

duo_api_csharp

C#
30
star
11

duo_api_php

PHP
28
star
12

duo_dotnet

Duo two-factor authentication for ASP.NET web applications
JavaScript
28
star
13

duo_ruby

Duo two-factor authentication for Ruby web applications
JavaScript
26
star
14

duo_api_swift

Duo Security API Client for Swift
Objective-C
23
star
15

duo_client_java

Java
22
star
16

libduo

Duo two-factor authentication API in C
C
21
star
17

duo_universal_python

Duo OIDC-based two-factor authentication for Python web applications
Python
21
star
18

duo_universal_php

Duo OIDC-based two-factor authentication for PHP web applications
PHP
21
star
19

duo_api_nodejs

JavaScript
20
star
20

duo_openvpn_as

Python
19
star
21

duo_universal_csharp

Duo OIDC-based two-factor authentication for .NET web applications
C#
18
star
22

duo_shibboleth

Duo two-factor authentication for Shibboleth
Java
17
star
23

duo_confluence

Duo two-factor authentication for Confluence.
JavaScript
14
star
24

duo_api_ruby

Ruby
14
star
25

duo_web_sdk

Duo Web JavaScript in ES6 Module for easy install
JavaScript
14
star
26

duo_universal_nodejs

Duo OIDC-based two-factor authentication for NodeJS web applications
TypeScript
14
star
27

duo_universal_java

Duo OIDC-based two-factor authentication for Java web applications
Java
14
star
28

duo_jira

Duo two-factor authentication for Atlassian JIRA
JavaScript
12
star
29

ykpiv-ssh-agent-helper

A dumb little utility to streamline the use of ssh-agent with PIV-enabled YubiKeys on OS X.
Objective-C
12
star
30

duo_coldfusion

Duo two-factor authentication for ColdFusion web applications
JavaScript
10
star
31

puppet-duo_unix

Puppet
9
star
32

duo_perl

Duo two-factor authentication for Perl web applications
JavaScript
9
star
33

duo_splunk

Duo two-factor authentication for Splunk
Python
7
star
34

duo_universal_golang

Duo OIDC-based two-factor authentication for Go web applications
Go
7
star
35

duo_drupal

Duo two-factor authentication for Drupal 6.x/7.x sites
JavaScript
6
star
36

duo_api_perl

Perl
5
star
37

duo_mediawiki

Duo two-factor authentication for MediaWiki
JavaScript
4
star
38

duo_universal_atlassian

Duo two-factor authentication plugin for Jira or Confluence with the Duo Universal Prompt.
Java
3
star
39

duo_classicasp

Duo two-factor authentication for Classic ASP web applications
JavaScript
2
star
40

duo_universal_wordpress

Duo two-factor authentication plugin for Wordpress with the Duo Universal Prompt.
PHP
2
star
41

duo_oam_plugin

Duo integrates with Oracle Access Manager to add two-factor authentication to your single sign-on logins, complete with inline self-service enrollment and Duo Prompt.
Java
1
star