Repository navigation
website/integrations: add detailed explanation for setting GH Org limit - #8604
Conversation
✅ Deploy Preview for authentik-storybook canceled.
|
✅ Deploy Preview for authentik ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
BeryJu
left a comment
There was a problem hiding this comment.
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
|
@BeryJu Thanks for the explanations! I'll do some tests to confirm and update the PR. For these two:
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 :-)
Good to know, I changed both options at once and wasn't sure which one was "correct", so I'll go back to |
|
Hi @joshuaboniface were there further tests and/or updates that you want to make to this PR? |
|
I had completely forgotten sorry! I'll go bqck and review this week. |
|
Any updates? :D |
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]>
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
* 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) ...
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
ak test authentik/)make lint-fix)If an API change has been made
make gen-build)If changes to the frontend have been made
make web)If applicable
make website)