Comments (7)
You can use https://github.com/octokit/oauth-auth.js https://github.com/octokit/oauth-app.js for a full SDK to create a server with all necessary APIs for the OAuth flows. See the routes at https://github.com/octokit/oauth-app.js#middlewares
Does that work for you?
There is also https://github.com/octokit/app.js which builds upon https://github.com/octokit/oauth-app.js, but also includes APIs specific to GitHub Apps
from auth-app.js.
You can use https://github.com/octokit/oauth-auth.js for a full SDK to create a server with all necessary APIs for the OAuth flows.
Hi @gr2m, thank you for your help! The link does not seem to work for me, I get a 404.
from auth-app.js.
Sorry! I meant https://github.com/octokit/oauth-app.js
from auth-app.js.
Thank you very much @gr2m, this is very helpful!
from auth-app.js.
@gr2m just to clarify - the linked repos help me setting up the oauth flow for a GitHub App (not an Oauth App), correct?
For my use case it is important to act on behalf an organization, not a user.
from auth-app.js.
the linked repos help me setting up the oauth flow for a GitHub App (not an Oauth App), correct
- GitHub App SDK: https://github.com/octokit/app.js/
- OAuth App SDK: https://github.com/octokit/oauth-app.js/
For my use case it is important to act on behalf an organization, not a user.
An organization cannot be an actor to e.g. create a comment. Only user accounts and GitHub Apps can be actors.
What exactly are you trying to build?
from auth-app.js.
Ok, thank you! I got a bit confused by OAUth apps vs GItHub Apps with OAuth.
I need to list the members of an organization, hence the need for a GitHub App.
Thank you very much!
from auth-app.js.
Related Issues (20)
- [BUG]: ReferenceError: Property 'atob' doesn't exist HOT 9
- [BUG]: secretOrPrivateKey must be an asymmetric key when using RS256 HOT 29
- [BUG]: package files not published to npm HOT 1
- [BUG]: unable to use this package with `@actions/github-script` HOT 19
- [DOCS]: Node version requirements HOT 3
- Replace `toMatchObject` Response assertions with `toEqual` in `auth-app.js` HOT 1
- [DOCS]: Implementation of GitHub App user authentication token with expiring disabled HOT 6
- [BUG]: Cache#get type doesn't allow promises HOT 2
- [BUG]: Upgrade universal-github-app-jwt 1.1.2 to close CVE-2022-25883 HOT 5
- Default flow results in error for missing installationId HOT 5
- [BUG]: `octokit.request("PATCH /app/hook/config", { url })` throws error `installationId option is required for installation authentication` HOT 1
- [BUG]: Handle 403 responses same as 401 responses in the first 3 seconds after an installation access token was created HOT 1
- [BUG]: /app/installation-requests missing from PATHS in requires-app-auth HOT 3
- Revisit skipped tests HOT 1
- `appId` can now be set to the application's Client ID HOT 2
- [MAINT]: use stable `semantic-release` HOT 2
- [BUG]: require("@octokit/auth-app"); Error [ERR_REQUIRE_ESM]: require() of ES Module HOT 6
- [BUG]: Update 6.1.0 -> 6.1.1 results in runtime error in AWS HOT 6
- Document that clientId may be assigned to the appId property HOT 1
- [BUG]: when setting `baseUrl` as part of parameters, the `baseUrl` is not passed through to `getInstallationAuthentication` HOT 2
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 auth-app.js.