Skip to content

Two issue has been added:#316

Merged
bugy merged 2 commits into
bugy:masterfrom
jtprof:master
Jun 18, 2020
Merged

Two issue has been added:#316
bugy merged 2 commits into
bugy:masterfrom
jtprof:master

Conversation

@jtprof

@jtprof jtprof commented Jun 18, 2020

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

@bugy bugy left a comment

Copy link
Copy Markdown
Owner

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

Comment thread src/model/server_conf.py Outdated
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
Copy Markdown
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

bugy commented Jun 18, 2020

Copy link
Copy Markdown
Owner

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