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

Two issue has been added: #316

Merged
merged 2 commits into from
Jun 18, 2020
Merged

Two issue has been added: #316

merged 2 commits into from
Jun 18, 2020

Conversation

jtprof
Copy link
Contributor

@jtprof jtprof commented Jun 18, 2020

  1. --log-folder and --tmp-folder command line arguments to get the files locations more flexible
  2. "expiration_days" (non-intеger values are avalible also) in server config file's section "auth" to limit auth cookie life time. The default value is 30 days if the param is underfined.

Changes to be committed:
modified: src/auth/auth_base.py
modified: src/auth/tornado_auth.py
modified: src/main.py
modified: src/model/server_conf.py

1. --log-folder and --tmp-folder command line arguments to get the files locations more flexible
2. "expiration_days" (non-intеger values are avalible also) in server config file's section "auth" to limit auth cookie life time. The default value is 30 days if the param is underfined.

 Changes to be committed:
	modified:   src/auth/auth_base.py
	modified:   src/auth/tornado_auth.py
	modified:   src/main.py
	modified:   src/model/server_conf.py
Copy link
Owner

@bugy bugy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Looks good, just one tiny improvement suggestion

Regarding the /tmp folder, what is your take on this comment: #306 (comment)? :)

@@ -156,6 +156,8 @@ def create_authenticator(auth_object, temp_folder):
else:
raise Exception(auth_type + ' auth is not supported')

authenticator.auth_expiration_days = float(auth_object.get('expiration_days')) if auth_object.get('expiration_days') is not None else 30
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can use default value here:
auth_object.get('expiration_days', '30')

 Changes to be committed:
	modified:   src/model/server_conf.py
@bugy
Copy link
Owner

bugy commented Jun 18, 2020

Nice, thanks!

@bugy bugy merged commit c511d05 into bugy:master Jun 18, 2020
@bugy bugy added the feature label Jun 18, 2020
@bugy bugy added this to the 1.16.0 milestone Jun 18, 2020
@bugy bugy added the resolved label Aug 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants