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 12a38ee1c8
Update vendoring
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2019-11-03 18:51:13 +01:00
..
auth.go Update dependencies 2019-04-22 06:44:07 +02:00
base.go Update dependencies 2019-04-22 06:44:07 +02:00
cookie.go Update dependencies 2019-04-22 06:44:07 +02: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
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
user.go Update dependencies 2019-04-22 06:44:07 +02: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