mirror of
https://github.com/KaySar12/NextZen-UserService.git
synced 2025-03-15 23:25:35 +07:00
update
This commit is contained in:
parent
c1242916f9
commit
bb2cbabc59
Binary file not shown.
2
dist/metadata.json
vendored
2
dist/metadata.json
vendored
@ -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"}}
|
@ -283,14 +283,14 @@ func OIDCLogout(c *gin.Context) {
|
||||
accessToken := json["authentikToken"]
|
||||
fmt.Println(accessToken)
|
||||
flow := "/if/flow/default-authentication-flow/"
|
||||
next := "next=/application/o/authorize/"
|
||||
params := url.Values{}
|
||||
params.Add("?client_id", clientID)
|
||||
params.Add("redirect_uri", callbackURL)
|
||||
params.Add("response_type", "code")
|
||||
params.Add("scope", "openid+profile+email+goauthentik.io/api")
|
||||
params.Add("state", "/#/profile")
|
||||
fullURL := authServer + flow + "?" + url.QueryEscape(next+params.Encode())
|
||||
next := "/application/o/authorize/"
|
||||
|
||||
client := "client_id=" + clientID
|
||||
redirect_uri := "&redirect_uri=" + url.QueryEscape(callbackURL)
|
||||
response_type := "&response_type=code"
|
||||
scope := "&scope=openid+profile+email+" + url.QueryEscape("goauthentik.io/api")
|
||||
state := "&state=" + url.QueryEscape("/#/profile")
|
||||
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})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user