mirror of
https://github.com/Luzifer/nginx-sso.git
synced 2024-12-21 05:11:17 +00:00
6fa934880e
* Re-add example configuration for Crowd * Implement Crowd authentication * Fix: Some errors just mean there is no user * Document crowd provider * Vendor new dependencies * Reduce error messages: Check for config details |
||
---|---|---|
.. | ||
crowdauth | ||
auth.go | ||
auth_test.go | ||
base.go | ||
base_test.go | ||
cookie.go | ||
cookie_test.go | ||
error.go | ||
groups.go | ||
groups_test.go | ||
LICENSE | ||
README.md | ||
sso.go | ||
sso_test.go | ||
user.go | ||
user_test.go |
go-crowd
Go library for interacting with Atlassian Crowd
- Crowd API Documentation
Client example
client, err := crowd.New("crowd_app_user",
"crowd_app_password",
"crowd service URL")
user, err := client.Authenticate("testuser", "testpass")
if err != nil {
/*
failure or reject from crowd. check if err = reason from
https://developer.atlassian.com/display/CROWDDEV/Using+the+Crowd+REST+APIs#UsingtheCrowdRESTAPIs-HTTPResponseCodesandErrorResponses
*/
}
// if auth successful, user contains user information