mirror of
https://github.com/KaySar12/NextZen-UserService.git
synced 2025-10-06 19:59:42 +07:00
update
This commit is contained in:
BIN
Binary file not shown.
Vendored
+1
-1
@@ -1 +1 @@
|
|||||||
{"project_name":"casaos-user-service","tag":"v1.0.0","previous_tag":"","version":"1.0.1","commit":"3e775a86e0a9e363a4c4fd711404c199e7a89050","date":"2024-08-15T11:56:31.284037482+07:00","runtime":{"goos":"linux","goarch":"amd64"}}
|
{"project_name":"casaos-user-service","tag":"v1.0.0","previous_tag":"","version":"1.0.1","commit":"c1242916f96bc8455ede5a75e224a4d4738d51b4","date":"2024-08-15T12:35:37.911933109+07:00","runtime":{"goos":"linux","goarch":"amd64"}}
|
||||||
+8
-8
@@ -283,14 +283,14 @@ func OIDCLogout(c *gin.Context) {
|
|||||||
accessToken := json["authentikToken"]
|
accessToken := json["authentikToken"]
|
||||||
fmt.Println(accessToken)
|
fmt.Println(accessToken)
|
||||||
flow := "/if/flow/default-authentication-flow/"
|
flow := "/if/flow/default-authentication-flow/"
|
||||||
next := "next=/application/o/authorize/"
|
next := "/application/o/authorize/"
|
||||||
params := url.Values{}
|
|
||||||
params.Add("?client_id", clientID)
|
client := "client_id=" + clientID
|
||||||
params.Add("redirect_uri", callbackURL)
|
redirect_uri := "&redirect_uri=" + url.QueryEscape(callbackURL)
|
||||||
params.Add("response_type", "code")
|
response_type := "&response_type=code"
|
||||||
params.Add("scope", "openid+profile+email+goauthentik.io/api")
|
scope := "&scope=openid+profile+email+" + url.QueryEscape("goauthentik.io/api")
|
||||||
params.Add("state", "/#/profile")
|
state := "&state=" + url.QueryEscape("/#/profile")
|
||||||
fullURL := authServer + flow + "?" + url.QueryEscape(next+params.Encode())
|
fullURL := authServer + flow + "?" + "next=" + url.QueryEscape(next+"?"+client+redirect_uri+response_type+scope+state)
|
||||||
|
|
||||||
c.JSON(http.StatusOK, model.Result{Success: common_err.ERROR_AUTH_TOKEN, Message: common_err.GetMsg(common_err.ERROR_AUTH_TOKEN), Data: fullURL})
|
c.JSON(http.StatusOK, model.Result{Success: common_err.ERROR_AUTH_TOKEN, Message: common_err.GetMsg(common_err.ERROR_AUTH_TOKEN), Data: fullURL})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user