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

An ability to use API keys for authentication instead of login+password #45

Closed
pavel-odintsov opened this issue Aug 28, 2017 · 4 comments

Comments

@pavel-odintsov
Copy link

Hello, guys!

Thank you for your hard work on this library! It works really well! I managed to create automatic user and ticket creation in less than few hours!

Great job!

But I'm looking for options to improve security of my application and use API keys instead of login and password.

Do you have plans to implement this feature?

Thank you!

@eggman64
Copy link
Member

Hello Pavel,

This is in our pipeline, but we unfortunately cannot prioritize it. We would encourage you to send us a pull request, if you decide to roll it yourself :)

Cheers!

@ssimono
Copy link

ssimono commented Aug 30, 2017

Hello again @pavel-odintsov

You can actually already use an api token, as it uses internally the same technical workflow.
All you need to do is to append /token to the ZENDESK_USERNAME environment variable, and use your API token as the password.

See Zendesk API docs for details about the API

@pavel-odintsov
Copy link
Author

Wow! That's awesome! Thank you, guys! :)

ssimono pushed a commit to ssimono/go-zendesk that referenced this issue Aug 30, 2017
- Add inline doc about credentials so they appear in godoc
- Replace the doc file by a Example file that should run on godocs (https://blog.golang.org/examples)
@ssimono ssimono closed this as completed Aug 30, 2017
@pavel-odintsov
Copy link
Author

It works! Cool! Thanks!

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