Limit to Github organisation

Hi, I’m investigating whether I can limit an app to a Github organization.

I’ve seen loginsrv/README.md at master · tarent/loginsrv · GitHub but I don’t understand if I can limit it to an organization’s ID members only.

Thanks!

I don’t think login ever actually accesses the user’s organisation membership data on Github via OAuth, so I assume not.

Presumably this would be possible though. The organisation membership is available (I assume) via the github api, so It should be possible to modify the plugin to check this.

Perhaps a PR could be submitted if this functionality is desired.

I ended up implementing this myself as part of the application.

If a PR was to be prepared, it might help to look what I did here:

Also noticed a thorough implementation write up here: Single sign-on against GitHub using ASGI middleware

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.