Skip to content
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

Merged
merged 11 commits into from
Sep 6, 2023

Conversation

blink1073
Copy link
Member

@blink1073 blink1073 commented Sep 6, 2023

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')
Copy link
Contributor

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.

Copy link
Member Author

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
Copy link
Contributor

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?

Copy link
Member Author

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']}")
Copy link
Contributor

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?

Copy link
Member Author

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.

@blink1073 blink1073 merged commit 8072598 into mongodb-labs:master Sep 6, 2023
12 checks passed
@blink1073 blink1073 deleted the DRIVERS-2616-3 branch September 6, 2023 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants