mirror of
https://github.com/weloe/token-go.git
synced 2025-10-06 16:07:18 +08:00
feat: support SSO
This commit is contained in:
39
sso/param.go
Normal file
39
sso/param.go
Normal 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",
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user