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

Authentication #5

Closed
billybonks opened this issue Oct 22, 2012 · 4 comments
Closed

Authentication #5

billybonks opened this issue Oct 22, 2012 · 4 comments

Comments

@billybonks
Copy link

Hi i cant seem to see any details if i wanted to authenticate to github, i suppose this functionality is not yet implemented

@k33g
Copy link
Owner

k33g commented Oct 22, 2012

I'm not sure this is useful client side (private repositories ?), but you may find of interest in this : https://github.com/ajaxorg/node-github#authentication

@billybonks
Copy link
Author

the main use that comes to mind is increasing your rate limit from 60 per hour to 5000 per hour

from git hub :

We limit requests to 60 per hour for unauthenticated requests. For requests using Basic Authentication or OAuth, we limit requests to 5,000 per hour. You can check the returned HTTP headers of any API request to see your current status:

@k33g
Copy link
Owner

k33g commented Oct 22, 2012

Ok, i see, but i don't think it's possible todo only with client-side, you need a server side script (or in an application) to get a token : http://blog.vjeux.com/category/javascript

i've tried with basic authentication with something like that :

Gh3.Helper.callHttpApi({
    beforeSend: function (xhr) { xhr.setRequestHeader ("Authorization", "Basic " + Gh3.Base64.encode("user:password")); },
    success : function(res){ console.log("SUCCESS",res)}
})

but it does'nt work

@billybonks
Copy link
Author

i see :/ i think im going to have to redo most of my code in a server side code that generates the pages. because 60 is just to low :)

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

2 participants