67501f004f
Implement refresh relying on obtaining lock
2021-12-06 14:05:58 +00:00
b734de16e6
Refactor refreshSession method to reduce number of return
2021-12-03 23:07:40 +00:00
2781ea1c95
Try to wait for lock, when obtaining lock failed
2021-12-03 23:07:40 +00:00
360c753d6f
Remove unnecessary err variable definition
2021-12-03 23:07:39 +00:00
0cb8d23222
Simplify for loop for waiting for lock
2021-12-03 23:07:38 +00:00
d9e0933e54
Move validateSession back into refreshSessionIfNeeded
2021-12-03 23:06:46 +00:00
fca2d76f33
Fix tests for stored_session.go in middleware
2021-12-03 23:06:43 +00:00
d8663a19a9
Remove unnecessary log output
2021-12-03 23:06:42 +00:00
a8de9862cd
Update logger message
2021-12-03 23:06:41 +00:00
88ab07930e
Update update session from store
2021-12-03 23:06:41 +00:00
ccd7a91b2b
Add more specific error when updating from store
2021-12-03 23:06:40 +00:00
c6d8cd1ea4
Remove one return statement in getValidatedSession
2021-12-03 23:06:39 +00:00
86ba2f41ce
Refactor StoredSessionHandler
2021-12-03 23:06:38 +00:00
518e619289
Move session locking to refreshSessionIfNeeded method
2021-12-03 23:06:37 +00:00
76e3cb3e9a
Use const for delay and expire time
2021-12-03 23:06:36 +00:00
0f545e14d4
Lock session state when refreshing
2021-12-03 23:06:35 +00:00
d8deaa124b
Improve error message when no cookie is found
2021-10-13 19:08:11 +01:00
ff914d7e17
Use ErrNotImplemented
in default refresh implementation
2021-06-22 17:04:42 -07:00
593125152d
Standarize provider refresh implemention & logging
2021-06-22 17:04:30 -07:00
7fa6d2d024
Manage session time fields centrally
2021-06-21 21:54:52 -07:00
7e80e5596b
RefreshSessions immediately when called
2021-06-21 21:54:52 -07:00
6fb3274ca3
Refactor organization of scope aware request utils
...
Reorganized the structure of the Request Utils due to their widespread use
resulting in circular imports issues (mostly because of middleware & logger).
2021-01-16 13:55:48 -08:00
3fa42edb73
Fix import path for v7 ( #800 )
...
* fix import path for v7
find ./ -name "*.go" | xargs sed -i -e 's|"github.com/oauth2-proxy/oauth2-proxy|"github.com/oauth2-proxy/oauth2-proxy/v7|'
* fix module path
* go mod tidy
* fix installation docs
* update CHANGELOG
* Update CHANGELOG.md
Co-authored-by: Joel Speed <Joel.speed@hotmail.co.uk >
Co-authored-by: Joel Speed <Joel.speed@hotmail.co.uk >
2020-09-29 17:44:42 +01:00
d69fd6af22
Allow Logging to stdout with separate Error Log Channel ( #718 )
...
* Add dedicated error logging writer
* Document new errors to stdout flag
* Update changelog
* Thread-safe the log buffer
* Address feedback
* Remove duplication by adding log level
* Clean up error formatting
* Apply suggestions from code review
Co-authored-by: Joel Speed <Joel.speed@hotmail.co.uk >
2020-08-10 11:44:08 +01:00
65c228394f
Address gosec findings
...
Mostly handling unhandled errors appropriately.
If logging to STDERR fails, we panic. Added #nosec
comments to findings we are OK with.
2020-08-09 07:55:39 -07:00
034f057b60
Add session loader from session storage
2020-07-19 17:21:42 +01:00