privacyidea / pam_python

Add two factor authentication to PAM via privacyIDEA
18 stars 18 forks source link

set user agent #3

Closed cornelinux closed 8 years ago

cornelinux commented 8 years ago

So that the PAM module can be identified in the privacyIDEA client application type list, we need to set the user agent.

http://docs.python-requests.org/en/master/user/quickstart/#custom-headers

set the useragent to "PAM" This could be configurable