-
Notifications
You must be signed in to change notification settings - Fork 1
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
Config parsing rough initial idea #1
Conversation
Small refactor of the auth logic, happy to discuss tomorrow |
@@ -1,3 +1,2 @@ | |||
CONFIG_FILE_NAME = ".env.qnx" | |||
ACCESS_TOKEN_FILE_PATH = ".qnx/auth/access_token" | |||
REFRESH_TOKEN_FILE_PATH = ".qnx/auth/refresh_token" | |||
TOKEN_FILE_PATH = ".qnx/auth" |
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.
I've kept these separate so that we can point to the jupyter hub refresh token in the pod separately from the access token.
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.
We can discuss later today and refactor back by all means - have you thought at all about how we could supportXDG_CONFIG_HOME
as a valid config dir? Plenty of linux users like using this but not sure how well it would gel
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.
👍 . Nope, I wasn't aware of this as an option. I've just defaulted to the home directory.
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.
We could check if it is set and use it instead of the home directory.
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.
https://github.com/CQCL/tket/blob/fc43ebf3adf0f7cb96a214d051034eb95822377a/pytket/pytket/config/pytket_config.py#L23 I wrote some code for pytket a while back that does this if it's of use.
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.
Have made an issue for it: #2
Possibly don't need to address it in this PR
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.
Nice, looks like we could directly copy and paste that 😛
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.
Hey I'm happy to merge this for now to get the repo going? Can always format/test after the demo on Tuesday
No description provided.