-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Send client_id for OAuth2 registry auth #1546
Conversation
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.
Is there a situation where this needs to be configured? Or would the server just include "jib" as a valid client?
My understanding is that this OAuth2 Client ID is a public identifier for an app. In our case, the app is Jib. Basically, I think we can generate whatever value we want. The spec doc says the auth server does not need to have ID registered, so I think any value will work. My only concern is that, although the ID is public, this doc says it's a good practice to use an ID that is not easily guessable. I think I'll generate some longer string. |
It's be hard to make an unguessable client ID of we hardcore it. If we need to make it configurable in the future maybe we can deal with that then. |
Let me use an MD5 hash |
Since it's likely the client-id will appear in the registry logs, IMHO we should use something that clearly indicates Jib — the |
Good idea. The class is in jib-core, so the |
|
Fixes #1545.
client_id
is a required parameter.