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

Use API tokens instead of passwords; change JIRA to Jira; update docs… #176

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mansilladev
Copy link

… URL

@@ -1,14 +1,14 @@
# JIRA REST API Client
# Jira REST API Client
Copy link
Member

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')
Copy link
Member

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.
Copy link
Member

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).
Copy link
Member

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).

@glensc
Copy link
Contributor

glensc commented Dec 6, 2018

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.

@aik099
Copy link
Member

aik099 commented Dec 6, 2018

@mansilladev , any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants