javascript - Authentication on Github -
i'm using javascript client in order basic authentication. example when i'm using following command
curl -i -u uaername:password -k -d "{\"scopes\": [\"repo\"]}" https://api.github.com/authorizations in order token github
how can issue same command using javascript , ajax ? using following command had retrieved answer :
$.getjson("https://api.github.com/orgs/github/repos?callback=?", function(json) { })
are asking whether there way oauth token purely client side? if so, answer no.
but, have work arounds.
github.js: https://github.com/michael/github
gatekeeper open source server side component can oauth tokens management:
https://github.com/prose/gatekeeper
you use firebase simple login , in case don't need manage server side services:
https://www.firebase.com/docs/security/simple-login-github.html
Comments
Post a Comment