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

Option for Bearer authentication #29

Open
liamkirwan opened this issue Nov 19, 2019 · 0 comments
Open

Option for Bearer authentication #29

liamkirwan opened this issue Nov 19, 2019 · 0 comments

Comments

@liamkirwan
Copy link

liamkirwan commented Nov 19, 2019

Hi, I'm using this library with instances of Jenkins deployed in Openshift, that support OAuth integration with the cluster and token auth via their login plugin.

This library works well for my needs, but assumes you are either using basic auth or a personal access token (or none at all). In a scenario where we have an ApiToken but no username, we can send the token with "Authorization = Bearer XXXX".

The patch for this is simple and I've tested against my environment, would you be willing to take a PR for this?

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

No branches or pull requests

1 participant