processone / go-crowd

Go library for interacting with Atlassian Crowd

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Go library for interacting with Atlassian Crowd

License:MIT License


Languages

Language:Go 100.0%