Skip to content

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)? :)

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