修改获取SSO登入登出URL方法
This commit is contained in:
parent
9a2e21d646
commit
daadddc8a2
@ -13,7 +13,7 @@ func GetLoginUrl(ident string, redirectUrl string, env ...string) string {
|
|||||||
return fmt.Sprintf("%s://%s%s", scheme, host, uri)
|
return fmt.Sprintf("%s://%s%s", scheme, host, uri)
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetLogout(ident string, env ...string) string {
|
func GetLogoutUrl(ident string, env ...string) string {
|
||||||
uri := fmt.Sprintf("/admin/main/logout?ident=%s&redirectUrl=", ident)
|
uri := fmt.Sprintf("/admin/main/logout?ident=%s&redirectUrl=", ident)
|
||||||
scheme, host := getSchemeAndHost(env...)
|
scheme, host := getSchemeAndHost(env...)
|
||||||
return fmt.Sprintf("%s://%s%s", scheme, host, uri)
|
return fmt.Sprintf("%s://%s%s", scheme, host, uri)
|
||||||
|
Loading…
Reference in New Issue
Block a user