forked from flipt-io/flipt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(auth/github): add organization membership check to GitHub (flipt…
…-io#2508) * feat(auth/github): add organization membership check to GitHub authentication method fixes flipt-io#2065 * rename configuration option * cleanup * cleanup * improve code test coverage * Update internal/config/authentication.go Co-authored-by: Mark Phelps <209477+markphelps@users.noreply.github.com> * address PR review feedback * cleanup * feat: support specific auth method validation (#4) --------- Co-authored-by: Mark Phelps <209477+markphelps@users.noreply.github.com>
- Loading branch information
1 parent
37f13e8
commit 72a06bb
Showing
7 changed files
with
205 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
internal/config/testdata/authentication/github_no_org_scope.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
authentication: | ||
required: true | ||
session: | ||
domain: "http://localhost:8080" | ||
secure: false | ||
methods: | ||
github: | ||
enabled: true | ||
scopes: | ||
- "user:email" | ||
allowed_organizations: | ||
- "github.com/flipt-io" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.