-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move the common middleware functions to go-mod-bootstrap #565
Comments
@cloudxxx8 , @lindseysimple, should this be closed by #562 |
No, #562 is for common API, not common middleware. Lindsey means the following: |
OH, ok. missed the |
lindseysimple
added a commit
to lindseysimple/go-mod-bootstrap
that referenced
this issue
Jul 25, 2023
Closes edgexfoundry#565. - Define the common middleware funcs on the router level. - Skip Ping in the auth handler func. Signed-off-by: Lindsey Cheng <[email protected]>
lindseysimple
added a commit
to lindseysimple/go-mod-bootstrap
that referenced
this issue
Jul 25, 2023
Closes edgexfoundry#565. - Define the common middleware funcs on the router level. - Skip Ping in the auth handler func. Signed-off-by: Lindsey Cheng <[email protected]>
5 tasks
lindseysimple
added a commit
to lindseysimple/go-mod-bootstrap
that referenced
this issue
Jul 26, 2023
Closes edgexfoundry#565. - Define the common middleware funcs on the router level. - Skip Ping in the auth handler func. Signed-off-by: Lindsey Cheng <[email protected]>
cloudxxx8
pushed a commit
that referenced
this issue
Jul 27, 2023
* feat: Move the common middlewares to go-mod-bootstrap Closes #565. - Define the common middleware funcs on the router level. - Skip Ping in the auth handler func. Signed-off-by: Lindsey Cheng <[email protected]> * fix: Return next handlerFunc for Ping instead of nil Return next handlerFunc for Ping instead of nil in VaultAuthenticationHandlerFunc. Signed-off-by: Lindsey Cheng <[email protected]> * fix: Invoke authenticationHook on the route level Revert back to invoke authenticationHook on the route level instead of on the server router level. Signed-off-by: Lindsey Cheng <[email protected]> --------- Signed-off-by: Lindsey Cheng <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🚀 Feature Request
Relevant Package [REQUIRED]
This feature request is for all of the EdgeX micro services have a dependency on itDescription [REQUIRED]
Currently the common middleware functions (e.g.,
ManageHeader
,LoggingMiddleware
,UrlDecodeMiddleware
) are defined and applied in the router of each EdgeX service separately as listed below:Describe the solution you'd like
The common middleware functions can be defined in the
go-mod-bootstrap
and be applied in theCommonController
to avoid the re-declaration of the functions and among each EdgeX service.Note
The issue needs #557 to get merged first to avoid the code conflict.
The text was updated successfully, but these errors were encountered: