Documentation ¶
Index ¶
- Constants
- func GetResponseBody(url string) (string, error)
- func New(preAuthentication func(ctx iris.Context) bool, ...) context.Handler
- type Adapter
- func (*Adapter) AddPolicy(sec string, ptype string, rule []string) error
- func (*Adapter) LoadPolicy(model model.Model) error
- func (*Adapter) RemoveFilteredPolicy(sec string, ptype string, fieldIndex int, fieldValues ...string) error
- func (*Adapter) RemovePolicy(sec string, ptype string, rule []string) error
- func (*Adapter) SavePolicy(model model.Model) error
- type AttributesStruct
- type AuthSuccessStruct
- type Client
- type Response
Constants ¶
View Source
const ( LoginPath = "/login" LogoutPath = "/logout" ValidatePath = "/serviceValidate" )
Variables ¶
This section is empty.
Functions ¶
func GetResponseBody ¶
Types ¶
type Adapter ¶
type Adapter struct{}
func (*Adapter) RemoveFilteredPolicy ¶
func (*Adapter) RemovePolicy ¶
type AttributesStruct ¶
type AttributesStruct struct { XMLName xml.Name `xml:"attributes"` UserMobile string `xml:"UserMobile"` UserName string `xml:"UserName"` UserTitle string `xml:"UserTitle` DeptFullName string `xml:"DeptFullName` UserNum string `xml:"UserNum` UserNameHex string `xml:"UserNameHex` OfficeAddress string `xml:"OfficeAddress` UserEmail string `xml:"UserEmail` ACCOUNT string `xml:"ACCOUNT` UserBelong int8 `xml:"UserBelong` UserId int16 `xml:"UserId` DeptName string `xml:"DeptName` }
type AuthSuccessStruct ¶
type AuthSuccessStruct struct { XMLName xml.Name `xml:"authenticationSuccess"` User string `xml:"user"` Attributes AttributesStruct `xml:"attributes"` }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Authentication ¶
func (*Client) RedirectToLogin ¶
RedirectToLogout replies to the request with a redirect URL to authenticate with CAS.
func (*Client) RedirectToLogout ¶
Click to show internal directories.
Click to hide internal directories.