Skip to content
This repository has been archived by the owner on Aug 3, 2019. It is now read-only.

[JENKINS-57884] Remove the need for using client api auth class #6

Merged
merged 3 commits into from
Jun 6, 2019

Conversation

baymac
Copy link
Owner

@baymac baymac commented Jun 6, 2019

As suggested by @justinharringa here, I have removed the credentials matchers using auth models defined in the client.api package as we do not have the overhead of dealing with api methods inside our plugin. So all authentication details can be fetched as follows:

Token: credentials.getToken().getPlainText() where credentials is of type PersonalAccessToken

Username/Password credentials.getUsername()/credentials.getPassword().getPlainText() where credentials is a generic StandardUsernamePasswordCredentials

I am keeping the models as it is for now, maybe it will be required in future else remove it.

@baymac
Copy link
Owner Author

baymac commented Jun 6, 2019

I think it is better to remove it than keep it. 🤘

@baymac baymac requested a review from jeffpearce June 6, 2019 19:52
@baymac baymac merged commit ed2edcd into develop Jun 6, 2019
@baymac baymac deleted the remove-auth-models branch June 6, 2019 21:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants