motiv-labs / janus

An API Gateway written in Go
https://hellofresh.gitbooks.io/janus
MIT License
2.79k stars 317 forks source link

Configurable Session Timeout #331

Closed s4nji closed 6 years ago

s4nji commented 6 years ago

What does this PR do?

Allow administration token timeout to be configurable via envconfig (TOKEN_TIMEOUT) The default value remains to be 1 hour.

Related

https://github.com/hellofresh/janus-dashboard/issues/293

codecov[bot] commented 6 years ago

Codecov Report

Merging #331 into master will increase coverage by 0.02%. The diff coverage is 50%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #331      +/-   ##
=========================================
+ Coverage   41.37%   41.4%   +0.02%     
=========================================
  Files          74      74              
  Lines        2511    2512       +1     
=========================================
+ Hits         1039    1040       +1     
  Misses       1407    1407              
  Partials       65      65
Impacted Files Coverage Δ
pkg/jwt/guard.go 0% <0%> (ø) :arrow_up:
pkg/config/specification.go 61.81% <100%> (+0.7%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 70f9563...8d26310. Read the comment docs.