-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Added test to notebook for password token expiry #9274
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
….com:OpenMined/PySyft into snwagh/adding-test-for-password-token-expiry
# expiry_time = settings.pwd_token_config.token_exp_min | ||
|
||
# Option 2 | ||
settings_service = context.server.get_service("settingsservice") |
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.
should we update to the context.server.services approach and remove the rest of this comment?
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.
Good point, will merge it with Teo's PR. Will wait for that to be merged so as to not create conflicts for his 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.
Looks good! Just the one nitpicky comment to change how the service is called
Added test to check password token expiry.
Closes https://github.com/OpenMined/Heartbeat/issues/1808
Repurposed variable
token_exp_min
to encode seconds.