Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For new authentication method #21

Merged
merged 3 commits into from
Jun 17, 2017
Merged

For new authentication method #21

merged 3 commits into from
Jun 17, 2017

Conversation

kosukemori
Copy link
Contributor

@kosukemori kosukemori commented Jun 16, 2017

Modify for new authentication method in zeus.

Should we move from travis to codeship?

@zeusuibot
Copy link

Randomized reviewers for this pull request: @yoelcabo

@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 77.371% when pulling b9e2b63 on for-user-token into 1d72f3d on develop.

@travelist
Copy link
Contributor

Should we move from travis to codeship?

Not necessary at the moment:)

zeus.go Outdated
}
if err != nil {
return []byte{}, 0, err
}
request.Header.Add("Authorization", "Bearer "+zeus.Token)
request.Header.Add("Bucket-Name", zeus.OrganizationAndBucket)
Copy link
Contributor

@travelist travelist Jun 16, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kosukemori
If OrganizationAndBucket is "" (this means user did not call bucket("org/bucket") method), please skip this line.

This is for backward compatibility.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@travelist
Isn't enough?
https://github.com/CiscoZeus/go-zeusclient/pull/21/files#diff-e5c1a3b943c1c3c19e6d4624f505427bR196

I thought that new go-client don't need to deal with external_token, is this correct?

@kosukemori
Copy link
Contributor Author

I modified code to reset 'org/bucket' info. This prevent user to reuse same 'org/bucket' information without calling 'bucket' method.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.4%) to 77.516% when pulling 465375c on for-user-token into 1d72f3d on develop.

@travelist
Copy link
Contributor

@kosukemori LGTM, Thank you!:)

@travelist travelist merged commit f4b003d into develop Jun 17, 2017
@travelist travelist deleted the for-user-token branch June 17, 2017 14:04
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.

None yet

4 participants