feat: support SSO

This commit is contained in:
weloe
2023-06-09 03:30:51 +08:00
parent ecef85c8af
commit 446789e261
20 changed files with 1824 additions and 1 deletions

39
sso/param.go Normal file
View File

@@ -0,0 +1,39 @@
package sso
// ParamName http request param name.
type ParamName struct {
Redirect string
Ticket string
Back string
Mode string
LoginId string
Client string
SsoLogoutCall string
Name string
Pwd string
//=== sign param
TimeStamp string
Nonce string
Sign string
SecretKet string
}
func DefaultParamName() *ParamName {
return &ParamName{
Redirect: "redirect",
Ticket: "ticket",
Back: "back",
Mode: "mode",
LoginId: "loginId",
Client: "client",
SsoLogoutCall: "ssoLogoutCall",
Name: "name",
Pwd: "pwd",
TimeStamp: "timestamp",
Nonce: "nonce",
Sign: "sign",
SecretKet: "key",
}
}