-
Notifications
You must be signed in to change notification settings - Fork 4
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
Conversation
Randomized reviewers for this pull request: @yoelcabo |
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) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
I modified code to reset 'org/bucket' info. This prevent user to reuse same 'org/bucket' information without calling 'bucket' method. |
@kosukemori LGTM, Thank you!:) |
Modify for new authentication method in zeus.
Should we move from travis to codeship?