Documentation ¶
Index ¶
- Variables
- type CAS
- func (c *CAS) GetLoginURL(redirectURL string) string
- func (c *CAS) GetLogoutURL(redirectURL string) string
- func (c *CAS) GetValidateURL(ticket string, redirectURL string) string
- func (c *CAS) Notify(notice *Notice) error
- func (c *CAS) SetDomain(domain string) *CAS
- func (c *CAS) SetFrontendDomain(domain string) *CAS
- func (c *CAS) SetSendKey(sendKey string) *CAS
- func (c *CAS) Validate(ticket string, redirectURL string) (CasServiceResponse, error)
- type CasAnyAttribute
- type CasAttributes
- type CasAuthenticationFailure
- type CasAuthenticationSuccess
- type CasNamedAttribute
- type CasProxies
- type CasProxyFailure
- type CasProxySuccess
- type CasServiceResponse
- type CasUserAttributes
- type Notice
- type Resp
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type CAS ¶
type CAS struct {
// contains filtered or unexported fields
}
func (*CAS) GetLoginURL ¶
func (*CAS) GetLogoutURL ¶
func (*CAS) SetFrontendDomain ¶ added in v1.0.1
SetFrontendDomain set frontend domain
func (*CAS) SetSendKey ¶ added in v0.2.0
type CasAnyAttribute ¶ added in v1.0.0
type CasAttributes ¶ added in v1.0.0
type CasAttributes struct { XMLName xml.Name `xml:"cas:attributes" json:"-"` AuthenticationDate time.Time `xml:"cas:authenticationDate"` LongTermAuthenticationRequestTokenUsed bool `xml:"cas:longTermAuthenticationRequestTokenUsed"` IsFromNewLogin bool `xml:"cas:isFromNewLogin"` MemberOf []string `xml:"cas:memberOf"` UserAttributes *CasUserAttributes ExtraAttributes []*CasAnyAttribute `xml:",any"` }
type CasAuthenticationFailure ¶ added in v1.0.0
type CasAuthenticationSuccess ¶ added in v1.0.0
type CasAuthenticationSuccess struct { XMLName xml.Name `xml:"cas:authenticationSuccess" json:"-"` User string `xml:"cas:user"` ProxyGrantingTicket string `xml:"cas:proxyGrantingTicket,omitempty"` Proxies *CasProxies `xml:"cas:proxies"` Attributes *CasAttributes `xml:"cas:attributes"` ExtraAttributes []*CasAnyAttribute `xml:",any"` }
type CasNamedAttribute ¶ added in v1.0.0
type CasProxies ¶ added in v1.0.0
type CasProxyFailure ¶ added in v1.0.0
type CasProxySuccess ¶ added in v1.0.0
type CasServiceResponse ¶ added in v1.0.0
type CasServiceResponse struct { XMLName xml.Name `xml:"cas:serviceResponse" json:"-"` Xmlns string `xml:"xmlns:cas,attr"` Failure *CasAuthenticationFailure Success *CasAuthenticationSuccess ProxySuccess *CasProxySuccess ProxyFailure *CasProxyFailure }
type CasUserAttributes ¶ added in v1.0.0
type CasUserAttributes struct { XMLName xml.Name `xml:"cas:userAttributes" json:"-"` Attributes []*CasNamedAttribute `xml:"cas:attribute"` AnyAttributes []*CasAnyAttribute `xml:",any"` }
type Notice ¶ added in v0.2.0
type Notice struct { Title string `json:"title"` Body string `json:"body"` Url string `json:"url"` // 详情链接 To string `json:"to"` // UID 仅当推送为服务推送时该字段生效 From string `json:"from"` // 服务名 仅当推送为个人推送时该字段生效 }
Click to show internal directories.
Click to hide internal directories.