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

Basic Auth credentials being deprecated #525

Closed
nycnewman opened this issue Jan 14, 2020 · 3 comments
Closed

Basic Auth credentials being deprecated #525

nycnewman opened this issue Jan 14, 2020 · 3 comments
Assignees

Comments

@nycnewman
Copy link

We have started to receive messages from Github regarding deprecation of Basic Auth against API. Looking at the code, it appears that token will never be used even if specified. The code in pullRequests.js appears to only pass the Basic Auth credentials from the global config and never passes the token. The github.js code either way will always override token with Basic Auth (latter comes later in sequence and there is not check that auth object is already set).

Also interested to understand when the Github app is used compared to the other Auth credentials. It looks like Pull Request updates only use Basic/Token credentials. Correct?

@KharitonOff
Copy link
Contributor

Thank you very much for pointing to it. You are right, it is kind of legacy code, we use there. So there are couple of places, where we call github with basic authentication, mainly for handling comments in PRs.

If you wish you can update the code and switch the calls to token authentication, then we can also get rid of the check in github.js

@ibakshay
Copy link
Contributor

Hi @nycnewman, Thank you once again for pointing out the depreciation notice.
We have replaced the APIs using Basic Auth credentials with the global config (claassistantio) token. These changes are reflected in our latest release v2.4.6.

@nycnewman
Copy link
Author

Thank you. Was thinking of submitting a fix but you got ahead of me.

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

3 participants