Documentation ¶
Overview ¶
Package crowd provides methods for interacting with the Atlassian Crowd authentication, directory integration, and Single Sign-On system.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CookieConfig ¶
type CookieConfig struct { XMLName struct{} `xml:"cookie-config"` Domain string `xml:"domain"` Secure bool `xml:"secure"` Name string `xml:"name"` }
CookieConfig holds configuration values needed to set a Crowd SSO cookie.
type Crowd ¶
type Crowd struct {
// contains filtered or unexported fields
}
Crowd represents your Crowd (client) Application settings
func (*Crowd) Authenticate ¶
Authenticate a user & password against Crowd. Returns error on failure or account lockout. Success is a populated User with nil error.
func (*Crowd) GetCookieConfig ¶
func (c *Crowd) GetCookieConfig() (CookieConfig, error)
GetCookieConfig returns settings needed to set a Crowd SSO cookie.
type Error ¶
type Error struct { XMLName struct{} `xml:"error"` Reason string `xml:"reason"` Message string `xml:"message"` }
Error represents a error response from Crowd. Error reasons are documented at https://developer.atlassian.com/display/CROWDDEV/Using+the+Crowd+REST+APIs#UsingtheCrowdRESTAPIs-HTTPResponseCodesandErrorResponses
type User ¶
type User struct { XMLName struct{} `xml:"user"` UserName string `xml:"name,attr"` FirstName string `xml:"first-name"` LastName string `xml:"last-name"` DisplayName string `xml:"display-name"` Email string `xml:"email"` Active bool `xml:"active"` Key string `xml:"key"` }
User represents a user in Crowd