You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The most important feature of Couper 1.2 is the introduction of custom error handling in form of the error_handler block.
You can now register error handlers for error types. Instead of the standard error_file template, you can flexibly respond with arbitrary responses. error_handler is allowed in access control blocks (jwt, saml2 …), where you could e.g. handle missing tokens with a redirect-to-login.
In the future, error_handler will be usable in more config areas. Refer to the example if you want to see it in action.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
1.2
Release date: 2021-05-19
The most important feature of Couper 1.2 is the introduction of custom error handling in form of the
error_handler
block.You can now register error handlers for error types. Instead of the standard
error_file
template, you can flexibly respond with arbitraryresponse
s.error_handler
is allowed in access control blocks (jwt
,saml2
…), where you could e.g. handle missing tokens with a redirect-to-login.In the future,
error_handler
will be usable in more config areas. Refer to the example if you want to see it in action.Added
error_handler
block for access controls (#140)backend_responses.*.body
variable for accessing raw response body content (#182)oauth2
config options:scope
andtoken_endpoint_auth_method
(client_secret_basic
orclient_secret_post
) (#219, #220)Changed
saml2
fallback tonameid-format:unspecified
(#217)basic_auth
always responds with status code401
(#227)openapi
resolves relative server URLs to the current backend origin (#230)Fixed
/healthz
route when called withaccept-encoding: gzip
(#222)404
(#224)openapi
validations (#231)openapi
(#230)This discussion was created from the release 1.2.
Beta Was this translation helpful? Give feedback.
All reactions