Limit to Github organisation

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

I’ve seen https://github.com/tarent/loginsrv/blob/master/caddy/README.md 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: https://simonwillison.net/2019/Jul/14/sso-asgi/

1 Like