-
Notifications
You must be signed in to change notification settings - Fork 123
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
Use API tokens instead of passwords; change JIRA to Jira; update docs… #176
base: master
Are you sure you want to change the base?
Conversation
@@ -1,14 +1,14 @@ | |||
# JIRA REST API Client | |||
# Jira REST API Client |
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.
Please revert this change, because in here it's library name, not Jira application itself.
@@ -18,7 +18,7 @@ use chobie\Jira\Issues\Walker; | |||
|
|||
$api = new Api( | |||
'https://your-jira-project.net', | |||
new Basic('yourname', 'password') | |||
new Basic('yourname', 'apitoken') |
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.
Both password
and apitoken
would work. It's better to leave existing code and add a comment, e.g.:
new Basic('yourname', 'password') // Use `apitoken` instead of password for Jira Cloud instances.
## License | ||
|
||
JIRA REST API Client is released under the MIT License. See the bundled [LICENSE](LICENSE) file for details. | ||
Jira REST API Client is released under the MIT License. See the bundled [LICENSE](LICENSE) file for details. |
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.
Please revert this change, because in here it's library name, not Jira application itself.
@@ -42,6 +42,11 @@ php composer.phar require chobie/jira-api-restclient ^2.0@dev | |||
|
|||
* [Composer](https://getcomposer.org/download/) | |||
|
|||
## Authentication | |||
|
|||
This client uses basic authentication on the Jira Cloud APIs. Basic authentication requests for Jira Cloud should use [API tokens](https://confluence.atlassian.com/cloud/api-tokens-938839638.html) instead of Atlassian account passwords, as support for basic authentication with passwords has been [deprecated](https://community.developer.atlassian.com/t/announcement-deprecation-of-basic-authentication-with-passwords-and-cookie-based-authentication-in-jira-cloud-rest-apis/15687). |
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.
Usage of Jira Cloud
term alone is incorrect. Better replace on the Jira Cloud APIs
with on the Jira Instance (standalone or in the cloud)
.
I'm here just to confirm, that i just used api token instead of password, no code changes are neccessary. just docs update is fine. |
@mansilladev , any updates? |
… URL