goauthentik / goauthentik/authentik

Explanation of where GitHub Org Check flow should go?

Open
#8,592 5 comments 5 reactions 0 assignees View on GitHub
question
Dominant language
Python
Stars
25.6k
Forks
2k
Avg merge
1d 1h
Merged PRs (30d)
644

Description

**Describe your question/**
I'm trying to follow https://goauthentik.io/integrations/sources/github/#checking-for-membership-of-a-github-organisation but I cannot determine where exactly this is supposed to go within the flows.

I've tried placing it in numerous places, including various flow stages, in the Oauth social provider, in the application, and all of them fail. Some simply do nothing (i.e. allow a non-org user to log in), but most throw exceptions due to the first conditional not being valid (a KeyError on `context["source"]`).

**Relevant infos**
On version 2023.10.

**Screenshots**
N/A

**Logs**
N/A

**Additional context**
This documentation should be much more explicit about where this should be put for it to work.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.