-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DRIVERS-2616 Fix path handling for Windows #349
Conversation
get_id_token(config) | ||
config['issuer'] = secrets['oidc_issuer_1_uri'] | ||
config['username'] = 'test_user1' | ||
config['token_file'] = os.path.join(token_dir, 'test_user1_expires') | ||
config['token_file'] = join(token_dir, 'test_user1_expires') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's an extra space here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
python oidc_get_tokens.py | ||
ls -ltr $OIDC_TOKEN_DIR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the purpose of this ls
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was for debugging, I'll remove it.
@@ -105,6 +105,7 @@ def get_id_token(config=None, expires=None): | |||
token = response["id_token"] | |||
if config['token_file']: | |||
with open(config['token_file'], 'w') as fid: | |||
print(f"Writing token file: {config['token_file']}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this intended to be used for debugging?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it was too opaque before.
Tested with mongodb/mongo-python-driver#1365