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 9b3c895c04
Update dependencies
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2019-04-22 06:44:07 +02:00
..
crowdauth Implement Crowd authentication (#2) 2018-02-04 14:51:08 +01:00
auth.go Update dependencies 2019-04-22 06:44:07 +02:00
auth_test.go Implement Crowd authentication (#2) 2018-02-04 14:51:08 +01:00
base.go Update dependencies 2019-04-22 06:44:07 +02:00
base_test.go Implement Crowd authentication (#2) 2018-02-04 14:51:08 +01:00
cookie.go Update dependencies 2019-04-22 06:44:07 +02: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 Update dependencies 2019-04-22 06:44:07 +02:00
groups_test.go Update dependencies 2019-04-22 06:44:07 +02: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 Update dependencies 2019-04-22 06:44:07 +02:00
sso_test.go Implement Crowd authentication (#2) 2018-02-04 14:51:08 +01:00
user.go Update dependencies 2019-04-22 06:44:07 +02: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