Comments (6)
Interesting.. although it's weird in chrome app samples that they just put the client id/secret right there https://github.com/GoogleChrome/chrome-app-samples/blob/master/samples/github-auth/index.js#L9-L14 (how would you do so otherwise without a backend?)
from contributors-on-github.
// @imjasonh
from contributors-on-github.
Ah and this is because it only gives you a code and you need a separate xhr to get the actual token: https://github.com/GoogleChrome/chrome-app-samples/blob/e347c538e8612aa3b0f90bde0fc721c4f0569125/samples/github-auth/index.js#L69-L77
GitHub's OAuth implementation supports the standard authorization code grant type. Developers should implement the web application flow described below to obtain an authorization code and then exchange it for a token. (The implicit grant type is not supported.)
from contributors-on-github.
The client ID and secret are also only usable with your specified callback URL, like https://YOUR_EXTENSION_ID.chromiumapp.org
, which then redirects to your extension.
Attempting to use a different callback URL will fail before requesting the user's permission.
from contributors-on-github.
Hmm alright so I guess this is just how you do it for a chrome extension then? Will try to get this in then, since getting an access token can be annoying
from contributors-on-github.
Done with #9!
from contributors-on-github.
Related Issues (20)
- Show Stats on the profile page? HOT 1
- Custom icon HOT 2
- Also display comments/wiki edits HOT 5
- Add info to comments as well? HOT 3
- Rewrite HOT 1
- for help
- include opencollective donation
- firefox support HOT 4
- The dropdown is always open HOT 3
- Closing "Use OAuth" window outputs [object Object] in orange feedback bar below input HOT 3
- "Last update" is not showing date/time on hover of reload button HOT 1
- Still working for anyone? HOT 10
- Use MutationObserver instead of pushState listener HOT 2
- Update icons and styles
- On PRs the info is either wrongly shown to a comment, or is not shown at all HOT 1
- Change name HOT 2
- Show All Contributors Stats? HOT 1
- Upload to Opera addons catalog HOT 2
- Show PRs across GitHub Organization HOT 16
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from contributors-on-github.