pomerium/authenticate
Kenneth Jenkins 2f4005cc09
authenticate: remove extraneous error log (#4319)
Currently the Authenticate.storeIdentityProfile() method always emits an
Error log. If there is no error from cookieChunker.SetCookie(), this
results in an empty log entry:

    {"level":"error","time":"2023-06-27T23:56:38Z"}

Refactor this method to instead return the error from SetCookie(), and
update the calling code so that it logs a message only when this error
is non-nil.

(Moving the log call to the calling method gives access to the request
context, so the log entry will include the request ID and other related
info.)
2023-06-28 11:02:06 -07:00
..
authenticate.go store authenticate state on creation (#4064) 2023-03-17 18:25:29 -04:00
authenticate_test.go options: support multiple signing keys (#3828) 2022-12-22 09:31:09 -07:00
config.go authenticate: add events (#4051) 2023-05-01 15:11:30 -04:00
events.go authenticate: add events (#4051) 2023-05-01 15:11:30 -04:00
handlers.go authenticate: remove extraneous error log (#4319) 2023-06-28 11:02:06 -07:00
handlers_test.go config: remove source, remove deadcode, fix linting issues (#4118) 2023-04-21 17:25:11 -06:00
identity.go move directory providers (#3633) 2022-11-03 11:33:56 -06:00
identity_profile.go authenticate: remove extraneous error log (#4319) 2023-06-28 11:02:06 -07:00
middleware.go authenticate: fix internal url with webauthn (#3194) 2022-03-28 06:36:48 -06:00
state.go config: add cookie_same_site option (#4148) 2023-05-03 14:36:42 -06:00