Skip to content

Commit

Permalink
Use custom User-Agent for requests to Okta
Browse files Browse the repository at this point in the history
  • Loading branch information
epierce committed Nov 15, 2017
1 parent 1dbaaf0 commit e1993f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gimme_aws_creds/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__all__ = ['config', 'okta', 'main']
version = '1.0.8'
version = '1.0.9'
2 changes: 2 additions & 0 deletions gimme_aws_creds/okta.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from codecs import decode
from urllib.parse import parse_qs
from urllib.parse import urlparse
from . import version

import keyring
import requests
Expand Down Expand Up @@ -216,6 +217,7 @@ def auth_oauth(self, client_id, **kwargs):
def _get_headers():
"""sets the default headers"""
headers = {
'User-Agent': "gimme-aws-creds {}".format(version),
'Accept': 'application/json',
'Content-Type': 'application/json'}
return headers
Expand Down

0 comments on commit e1993f5

Please sign in to comment.