Commit f613d917 authored by qiuqunfeng's avatar qiuqunfeng
Browse files

Change SSO authentication request method from POST to GET

- Modify HTTP request method in AuthMiddleware from POST to GET
- Ensure compatibility with SSO service authentication endpoint
parent bafaf8a7
...@@ -34,7 +34,7 @@ func AuthMiddleware(ssoUrl string) gin.HandlerFunc { ...@@ -34,7 +34,7 @@ func AuthMiddleware(ssoUrl string) gin.HandlerFunc {
} }
// Create request to SSO service // Create request to SSO service
req, err := http.NewRequest(http.MethodPost, ssoUrl, nil) req, err := http.NewRequest(http.MethodGet, ssoUrl, nil)
if err != nil { if err != nil {
utils.AssembleResponse(c, nil, utils.ErrInternalServer) utils.AssembleResponse(c, nil, utils.ErrInternalServer)
c.Abort() c.Abort()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment