| AUTH_URL = "https://github.com/login/oauth/authorize" clientId = "YOUR-CLIENT-ID" redirectToUri = $location.absUrl() url = "#{AUTH_URL}?client_id=#{clientId}&redirect_uri=#{redirectToUri}&state=github&scope=user:email" $window.location.href = url |
--
You received this message because you are subscribed to the Google Groups "taigaio" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taigaio+u...@googlegroups.com.
To post to this group, send email to tai...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/taigaio/4e6e725e-f34f-4d91-a308-68ce9108ae57%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Are you able to simply use CURL to authenticate your own github credentials against https://api.taiga.io/api/v1/auth as I indicated in my original post? I see how you are doing it in that git repo, but I don't have a problem getting the code, it's using the code that does not work, without or without a token as well.
--
You received this message because you are subscribed to the Google Groups "taigaio" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taigaio+u...@googlegroups.com.
To post to this group, send email to tai...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/taigaio/66c2824b-cfc2-4550-abab-4505e3706844%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/taigaio/089926bc-e1f0-430c-9dc1-0803238a32e3%40googlegroups.com.
taiga-back? Why would I be running that? I want to connect to to the REST API of the hosted version from a custom script etc, not an install of your open source server. Unless http://taigaio.github.io/taiga-doc/dist/api.html is meant to only work with as a self hosted solution?
Right, so we are right back to my original post, clearer instructions are needed then yes?
I can't get the "code" for tree.taiga.io because I don't own the redirect_uri where the code is sent.
Your client ID is 6b350db81d47406377cf which is visible in chrome dev tools. Also, the "code" is visible in chrome dev tools as well as https://tree.taiga.io/login?code=X. But using that code does not work in the curl in my original post.
Any advice? Or simply, is GitHub auth supported at tree.taiga.io and if so what are the steps?
--
You received this message because you are subscribed to the Google Groups "taigaio" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taigaio+u...@googlegroups.com.
To post to this group, send email to tai...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/taigaio/CAFG5%2B%2BuxUpW1ks6o%3DZ%3Dxb1QNkc-Y_jjp78%2BG4YTW0UCKNK2New%40mail.gmail.com.
This custom script could parse this page where you have been redirected and submit the form (a "normal" user just would have to click on the accept button). If the post is correct github redirects the user to a taiga url with a code parameter in there, don't access this page, just extract this code parameter and use it for make the call to the Taiga auth API.This is making much more sense now in the context of your client id. I will give this a shot tonight, it sounds like it should just work! The downside is, if I were to develop a 3rd party app that used the api against your hosted solution then this "script" that you mention would need to run in the browser in order to authenticate someone via github, and, the user would already need to be logged into GitHub before doing anything with the "script".Also thanks David, I was not aware I could simply change my password like that. Does that mean I would no longer be able to use my GitHub account to login as well?
On Wednesday, March 4, 2015 at 12:17:26 AM UTC-8, Alejandro Alonso wrote:Hello Miles,2015-03-04 9:08 GMT+01:00 <mil...@uw.edu>:Right, so we are right back to my original post, clearer instructions are needed then yes?Yes, that's right, we will update it with the conclusions from this conversation ;)I can't get the "code" for tree.taiga.io because I don't own the redirect_uri where the code is sent.Yes you can, for example I suggested you create a custom script that makes a GET https://github.com/login/oauth/authorize with the required params. It redirects you to a github page where you have to submit a form. This custom script could parse this page where you have been redirected and submit the form (a "normal" user just would have to click on the accept button). If the post is correct github redirects the user to a taiga url with a code parameter in there, don't access this page, just extract this code parameter and use it for make the call to the Taiga auth API.Your client ID is 6b350db81d47406377cf which is visible in chrome dev tools. Also, the "code" is visible in chrome dev tools as well as https://tree.taiga.io/login?code=X. But using that code does not work in the curl in my original post.It doesn't work because you are trying to validate against github the same code two times and once github accepts one rejects the following (you need a new code)Any advice? Or simply, is GitHub auth supported at tree.taiga.io and if so what are the steps?Github auth is supported at tree.taiga.io our suggestion is that you create that custom script that emulates a user being redirected to github for extracting the github_code and use it directly against our auth API.Regards,
--
You received this message because you are subscribed to the Google Groups "taigaio" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taigaio+u...@googlegroups.com.
To post to this group, send email to tai...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/taigaio/e52eb03f-7bde-4a35-8d25-98d73d6329ee%40googlegroups.com.
Im going to not use the github login. This just doesnt seem right at all. Also, if I were to scale this out to anyone but myself I would have to ask for user input of their github username and password in order for this script you speak of to submit the form. It seems GitHub has setup plenty of api's so that this particular approach should not be needed.
Instead, I'll simply have users that have authed with taigia using github accounts to set their password so they can login, that way users will be much more willing to give a taiga username/password to get taigia data then they would their github account.