Skip to content

Commit

Permalink
roadtx: consider user agent and client in refreshtokento command
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkjanm committed May 16, 2024
1 parent c55fe69 commit 65a4757
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions roadtx/roadtools/roadtx/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -671,12 +671,15 @@ def main():
return
auth.set_client_id(tokenobject['_clientId'])
auth.set_resource_uri(args.resource)
auth.set_user_agent(args.user_agent)
auth.outfile = args.tokenfile
# Tenant from arguments or from tokenfile
if args.tenant:
auth.tenant = args.tenant
elif 'tenantId' in tokenobject:
auth.tenant = tokenobject['tenantId']
if args.client:
auth.set_client_id(args.client)
if args.cae:
auth.use_cae = args.cae
if not args.tokens_stdout:
Expand Down
2 changes: 1 addition & 1 deletion roadtx/setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from setuptools import setup
setup(name='roadtx',
version='1.8.1',
version='1.8.2',
description='ROADtools Token eXchange',
author='Dirk-jan Mollema',
author_email='[email protected]',
Expand Down

0 comments on commit 65a4757

Please sign in to comment.