Skip to content

website/integrations: add detailed explanation for setting GH Org limit - #8604

Merged
dominic-r merged 1 commit into
goauthentik:mainfrom
joshuaboniface:patch-1
Oct 16, 2026
Merged

dominic-r merged 1 commit into
goauthentik:mainfrom
joshuaboniface:patch-1

Conversation

@joshuaboniface

@joshuaboniface joshuaboniface commented Feb 20, 2024 •

Copy link
Copy Markdown
Contributor

Details

Adds the extended description of how to implement this as recorded in #8592, for the benefit of future users looking for this functionality.

This is just how I managed to get it to work, so I'm sure it could be improved, but I wanted to ensure the steps I took are well-documented.

Closes #8592


Checklist

  • Local tests pass (ak test authentik/)
  • The code has been formatted (make lint-fix)

If an API change has been made

  • The API schema has been updated (make gen-build)

If changes to the frontend have been made

  • The code has been formatted (make web)

If applicable

  • The documentation has been updated
  • The documentation has been formatted (make website)

@joshuaboniface
joshuaboniface requested a review from a team as a code owner February 20, 2024 22:59
@netlify

netlify Bot commented Feb 20, 2024 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook canceled.

Name Link
🔨 Latest commit 5b699c0
🔍 Latest deploy log https://app.netlify.com/sites/authentik-storybook/deploys/65d52ebe9b982500084cac92

@netlify

netlify Bot commented Feb 20, 2024

Copy link
Copy Markdown

✅ Deploy Preview for authentik ready!

Name Link
🔨 Latest commit 5b699c0
🔍 Latest deploy log https://app.netlify.com/sites/authentik/deploys/65d52ebe94df6e0008e7e1bb
😎 Deploy Preview https://deploy-preview-8604--authentik.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@BeryJu BeryJu changed the title docs: add detailed explanation for setting GH Org limit website/integrations: add detailed explanation for setting GH Org limit Feb 21, 2024

@BeryJu BeryJu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of notices:

  • in general for specific use cases I'd recommend creating a new source enrollment flow instead of modifying the default ones
  • also in general for this use case it's usually better to bind the policy to a stage bound to the flow instead of the flow directly, as with that no changes to the policy engine mode are required
  • the policy should most likely also be used with the authentication flow to check org membership on future logins
  • MESSAGE_CONTINUE is not a slient fallthrough (and if it were that would be a bug), it shows a message and redirects to the next URL (either ?next or /), so in this case it would redirect back to the default login page

@joshuaboniface

joshuaboniface commented Feb 21, 2024 •

Copy link
Copy Markdown
Contributor Author

@BeryJu Thanks for the explanations! I'll do some tests to confirm and update the PR.

For these two:

also in general for this use case it's usually better to bind the policy to a stage bound to the flow instead of the flow directly, as with that no changes to the policy engine mode are required

the policy should most likely also be used with the authentication flow to check org membership on future logins

I did try this, but it wasn't working (was never run/evaluated). Perhaps I'm just misunderstanding the flow of the flow but the only place it seemed to work reliably was bound to the Enrollment flow as a whole.. Putting it anywhere in Authentication led to it either never running (bound to any of the stages), or trying to run too early (before anything happened in the Authentication flow and throwing errors about the context). And binding it to the Enrollment stage had the same effects of not running at all, or running too late (the user would already be created) so maybe there is a bug there? I can do a bit more testing though since I now know exactly where it "works" and can compare to that. It's probably just me fumbling around figuring out how this works though :-)

MESSAGE_CONTINUE is not a slient fallthrough (and if it were that would be a bug), it shows a message and redirects to the next URL (either ?next or /), so in this case it would redirect back to the default login page

Good to know, I changed both options at once and wasn't sure which one was "correct", so I'll go back to MESSAGE_CONTINUE and test from there.

@tanberry tanberry added the status/reviewing thanks for opening, we're taking a look label Mar 15, 2024
@BeryJu BeryJu added status/awaiting-contributor Awaiting a response from the contributor and removed status/reviewing thanks for opening, we're taking a look labels Mar 15, 2024
@tanberry

tanberry commented Apr 1, 2024

Copy link
Copy Markdown
Contributor

Hi @joshuaboniface were there further tests and/or updates that you want to make to this PR?

@joshuaboniface

Copy link
Copy Markdown
Contributor Author

I had completely forgotten sorry! I'll go bqck and review this week.

@busybox11

Copy link
Copy Markdown
Contributor

Any updates? :D

@BeryJu BeryJu removed the status/awaiting-contributor Awaiting a response from the contributor label Feb 5, 2026
@dewi-tik
dewi-tik requested a review from dominic-r July 30, 2026 16:28
The default source enrollment and authentication flows already bind a
policy that passes on every source login, and flows default to the ANY
policy engine mode. Binding the organization policy to those flows
therefore never denied anyone. Tell readers to switch the flows to ALL.

Co-authored-by: Joshua M. Boniface <[email protected]>
@netlify

netlify Bot commented Oct 16, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit e1a6622
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6ad22afeb4af767f915dc981
😎 Deploy Preview https://deploy-preview-8604--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@dominic-r
dominic-r enabled auto-merge (squash) October 16, 2026 13:49
@codecov

codecov Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.25%. Comparing base (1425c71) to head (e1a6622).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8604      +/-   ##
==========================================
- Coverage   92.29%   92.25%   -0.04%     
==========================================
  Files        1185     1185              
  Lines       79557    79557              
  Branches     4351     4351              
==========================================
- Hits        73424    73398      -26     
- Misses       6067     6093      +26     
  Partials       66       66              
Flag Coverage Δ
conformance 32.43% <ø> (+<0.01%) ⬆️
e2e 37.13% <ø> (+<0.01%) ⬆️
integration 28.80% <ø> (-0.50%) ⬇️
rust 44.42% <ø> (ø)
unit 93.95% <ø> (+<0.01%) ⬆️
unit-migrate 93.94% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@dominic-r
dominic-r merged commit 4c43b84 into goauthentik:main Oct 16, 2026
140 checks passed
kensternberg-authentik added a commit that referenced this pull request Oct 19, 2026
* main: (101 commits)
  ci: exclude node_modules from Go lint (#26961)
  website/integrations: ch-ui: document the email_verified requirement (#26978)
  website/docs: add expression policy for case-insensitive unique usernames (#26974)
  core: prefetch token owners and memberships (#25803)
  website/integrations: add detailed explanation for setting GH Org limit (#8604)
  website/integrations: add opensearch (#26938)
  endpoints: fix MultipleObjectsReturned (#26971)
  core, web: update translations (#26963)
  website/docs: single-logout: add information around proxy providers for single logout (#26563)
  common/saml: move exceptions and logout request parser to common (#26533)
  stages/authenticator_webauthn: accept ML-DSA credentials (#26381)
  crypto: add ML-DSA certificate generation (#26380)
  website/integrations: add ch-ui (#26935)
  website/integrations: add kibana (#26936)
  core: bump pydantic from 2.13.5 to 2.14.0 (#26969)
  core: bump rust-toolchain from 1.99.0 to 1.99.1 (#26967)
  core: bump aws-cdk-lib from 2.272.0 to 2.273.0 (#26968)
  core: bump github.com/prometheus/client_golang from 1.24.1 to 1.25.0 (#26965)
  core: bump github.com/getsentry/sentry-go from 0.49.0 to 0.50.0 (#26966)
  web/admin: version banner (#26948)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Explanation of where GitHub Org Check flow should go?

6 participants