Documentation ¶
Index ¶
- func NewCASFailureResponse(c string, msg string) []byte
- func NewCASProxyFailureResponse(c string, msg string) []byte
- func NewCASProxySuccessResponse(pt string) []byte
- func NewCASSuccessResponse(u *db.User) []byte
- func ValidateHandler(c *context.Context)
- type CASAttributes
- type CASAuthenticationFailure
- type CASAuthenticationSuccess
- type CASPgtIou
- type CASProxyFailure
- type CASProxySuccess
- type CASServiceResponse
- type CASUser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCASFailureResponse ¶
NewCASFailureResponse 创建一个 CAS XML 失败返回,包含错误码以及错误信息。
func NewCASProxyFailureResponse ¶
NewCASProxyFailureResponse 创建一个 CAS Proxy XML 失败返回,包含错误码以及错误信息。
func NewCASProxySuccessResponse ¶
NewCASProxySuccessResponse 创建一个 CAS Proxy XML 成功返回,包含 Ticket。
func NewCASSuccessResponse ¶
NewCASSuccessResponse 创建一个 CAS XML 成功返回,包含用户信息。
func ValidateHandler ¶
Types ¶
type CASAttributes ¶
type CASAuthenticationSuccess ¶
type CASAuthenticationSuccess struct { XMLName xml.Name `xml:"cas:authenticationSuccess"` User CASUser Attributes CASAttributes }
type CASProxyFailure ¶
type CASProxySuccess ¶
type CASServiceResponse ¶
type CASServiceResponse struct { XMLName xml.Name `xml:"cas:serviceResponse"` Xmlns string `xml:"xmlns:cas,attr"` Success *CASAuthenticationSuccess Failure *CASAuthenticationFailure ProxySuccess *CASProxySuccess ProxyFailure *CASProxyFailure }
Click to show internal directories.
Click to hide internal directories.