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
Add support to authenticate with application credential #1224
Conversation
Build succeeded.
|
eed9250
to
ab38934
Compare
Build succeeded.
|
ab38934
to
4be558e
Compare
Build succeeded.
|
4be558e
to
bf17976
Compare
Build succeeded.
|
bf17976
to
36601a1
Compare
@RdL87 I pushed a new version of the patch that works with any possible combination of ID or NAME env vars. Can you review it ? Are you working on the tests ? |
@zioproto i'm working on this just now. So i'm going to recompile the client with the new library you've just pushed. I will ping you as soon as the keystone becomes available. |
Build succeeded.
|
c274c69
to
253e20e
Compare
@jtopjian I believe we are ready for review. I added two tests. I tried to to give correct code pointers to keystone codebase. thank you |
Build succeeded.
|
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.
@zioproto This is looking really good. :)
I think I found a good keystone reference to use: https://github.com/openstack/keystoneauth/blob/ebe781a3ea0386d6ff088a84e8dde26e538b856d/keystoneauth1/identity/v3/application_credential.py#L48-L67
It looks to match up really well with your other investigations.
The core functionality of this PR looks correct. The comments I left are just putting some final touches on things.
Let me know if you have any questions :)
auth_options.go
Outdated
|
||
} else if opts.ApplicationCredentialID != "" { | ||
// Configure the request for ApplicationCredentialID authentication. | ||
// https://github.com/openstack/keystone-specs/blob/master/specs/keystone/queens/application-credentials.rst#using-an-application-credential-to-obtain-a-token |
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.
253e20e
to
9cbd52b
Compare
Thanks for the review. I pushed changes that should address all the points of the review |
9cbd52b
to
ea7289e
Compare
Build succeeded.
|
@jtopjian I am not sure what the problem with the coveralls test not passing |
@zioproto You can ignore Coveralls. It acts weird sometimes. |
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.
For #1214
Links to the line numbers/files in the OpenStack source code that support the
code in this PR: