Skip to content

Conversation

renier
Copy link
Contributor

@renier renier commented Nov 16, 2015

To get a client that will use token-based authentication headers, simply obtain a client using a password like this:

    client = SoftLayer::Client.with_password(username: 'foo', password: 'bar')
    puts client.authentication_headers
    puts client['Account'].getCurrentUser

I increased the version to 3.2, since, follwing semver rules as I understood them, this is not a bug fix but rather a backwards-compatible enhancement.

SLsthompson added a commit that referenced this pull request Nov 19, 2015
Add token/password authentication to ruby client
@SLsthompson SLsthompson merged commit c2301ce into softlayer:master Nov 19, 2015
@renier renier deleted the token_auth branch November 19, 2015 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants