Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Github groups - Automatically accept invite #111

Closed
jmgasper opened this issue Oct 10, 2018 · 1 comment
Closed

Github groups - Automatically accept invite #111

jmgasper opened this issue Oct 10, 2018 · 1 comment

Comments

@jmgasper
Copy link
Collaborator

When adding a user to Github via the Git Access Links, we use organizations in Github to manage access. The user has to be invited and then accepted to the organization to be able to use it.

To streamline this process, we'd like to add a member to the organization and accept the invite on their behalf automatically when they go through the Git access flow.

It appears this can be done through the API:

from https://developer.github.com/v3/orgs/members/#add-a-member

To add someone as a member to an organization, you must invite them to the organization or invite them to a team.

https://developer.github.com/v3/repos/invitations/#accept-a-repository-invitation

We should have what we need in terms of OAuth tokens to be able to do this.

@jmgasper
Copy link
Collaborator Author

jmgasper commented Dec 6, 2018

The goal here is to have the Github git access links work as well as they do for Gitlab, working around the quirks of the Github authorization process. If you have questions or want to inquire about individual use cases, please ask in the forum.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant