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

Oauth #56

Closed
AlbinOS opened this issue Dec 27, 2016 · 10 comments
Closed

Oauth #56

AlbinOS opened this issue Dec 27, 2016 · 10 comments

Comments

@AlbinOS
Copy link
Contributor

AlbinOS commented Dec 27, 2016

I'm trying to implement Oauth authentification with our jira cloud platform and I see on the README.md that this library support it but I have trouble to wrap my head around this feature.

Does anybody have a working example ?

Thanks a lot !

@Lupus
Copy link

Lupus commented Jan 15, 2017

I've chopped some of my code I've came up with recently and uploaded it as a gist [1]. I have not proof-compiled it, but it ought to work. Just call getJIRAClient() to get a fully configured client object. Also give a look at [2], it is a nice tutorial for getting JIRA administration part done.

[1] https://gist.github.com/Lupus/edafe9a7c5c6b13407293d795442fe67
[2] https://www.prodpad.com/2013/05/tech-tutorial-oauth-in-jira/

@AlbinOS
Copy link
Contributor Author

AlbinOS commented Jan 16, 2017

@Lupus, awesome ! Thanks a lot !

I'll look at it.

@andygrunwald
Copy link
Owner

Sounds like a plan!
Thank you @Lupus for the answer and @AlbinOS for the question!

@Lupus
Copy link

Lupus commented Jan 27, 2017

@andygrunwald may be it makes sense to include this in your repo as a part of API or as an example? It took me quite a while to figure this out, and other folks are also struggling with this.

I could make a PR for this if you think it will be useful.

@andygrunwald
Copy link
Owner

@Lupus Yeah, why not. Good catch.
I would prefer as an example + a small note in the readme with a link to this example.

Would be good if you can create a PR.

@andygrunwald andygrunwald reopened this Jan 27, 2017
@Lupus
Copy link

Lupus commented Jan 27, 2017

Awesome, sounds good to me. Will do the PR once I have some spare time.

@andygrunwald
Copy link
Owner

Thank you. Until this i will leave this issue open.

@andygrunwald
Copy link
Owner

@Lupus @AlbinOS I added a link to the gist and to this issue into the readme. Checkout https://github.com/andygrunwald/go-jira#authenticate-with-oauth

I hope this works for you :)

@Lupus
Copy link

Lupus commented Jun 15, 2017

Wow, thanks! Sorry for not looking into this for so long... My jira tool got deprioritized in my todo list along with related items :(

@nzin-appdirect
Copy link

thanks @Lupus for the gist, it helped me a lot!

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

No branches or pull requests

4 participants