1
0
Fork 0
mirror of https://github.com/Luzifer/nginx-sso.git synced 2024-12-20 21:01:17 +00:00
nginx-sso/vendor/github.com/jda/go-crowd
Knut Ahlers 6fa934880e
Implement Crowd authentication (#2)
* 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
2018-02-04 14:51:08 +01:00
..
crowdauth Implement Crowd authentication (#2) 2018-02-04 14:51:08 +01:00
auth.go Implement Crowd authentication (#2) 2018-02-04 14:51:08 +01:00
auth_test.go Implement Crowd authentication (#2) 2018-02-04 14:51:08 +01:00
base.go Implement Crowd authentication (#2) 2018-02-04 14:51:08 +01:00
base_test.go Implement Crowd authentication (#2) 2018-02-04 14:51:08 +01:00
cookie.go Implement Crowd authentication (#2) 2018-02-04 14:51:08 +01:00
cookie_test.go Implement Crowd authentication (#2) 2018-02-04 14:51:08 +01:00
error.go Implement Crowd authentication (#2) 2018-02-04 14:51:08 +01:00
groups.go Implement Crowd authentication (#2) 2018-02-04 14:51:08 +01:00
groups_test.go Implement Crowd authentication (#2) 2018-02-04 14:51:08 +01:00
LICENSE Implement Crowd authentication (#2) 2018-02-04 14:51:08 +01:00
README.md Implement Crowd authentication (#2) 2018-02-04 14:51:08 +01:00
sso.go Implement Crowd authentication (#2) 2018-02-04 14:51:08 +01:00
sso_test.go Implement Crowd authentication (#2) 2018-02-04 14:51:08 +01:00
user.go Implement Crowd authentication (#2) 2018-02-04 14:51:08 +01:00
user_test.go Implement Crowd authentication (#2) 2018-02-04 14:51:08 +01:00

go-crowd

Go library for interacting with Atlassian Crowd

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