-
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.
Merge pull request #11 from tokens-studio/feat/supabase-sso
Adds support for exposing the meta endpoints for supabase auth with SSO SAML
- Loading branch information
Showing
5 changed files
with
65 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
## 0.0.9 | ||
|
||
Added support for automatically exposing the needed SAML metadata and ACS routes through kong if auth.environment.GOTRUE_SAML_ENABLED is set to "true" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
suite: test kong configmap | ||
templates: | ||
- kong/config.yaml | ||
tests: | ||
- it: should include SAML routes when GOTRUE_SAML_ENABLED is true | ||
set: | ||
kong.enabled: true | ||
auth.enabled: true | ||
auth.environment.GOTRUE_SAML_ENABLED: "true" | ||
asserts: | ||
- matchRegex: | ||
path: data["template.yml"] | ||
pattern: "name: auth-v1-open-sso-acs" | ||
- matchRegex: | ||
path: data["template.yml"] | ||
pattern: "url: \"http://.*:.*\\/sso\\/saml\\/acs\"" | ||
- matchRegex: | ||
path: data["template.yml"] | ||
pattern: "name: auth-v1-open-sso-metadata" | ||
- matchRegex: | ||
path: data["template.yml"] | ||
pattern: "url: \"http://.*:.*\\/sso\\/saml\\/metadata\"" | ||
|
||
|
||
|
||
- it: should not include SAML routes when GOTRUE_SAML_ENABLED is false | ||
set: | ||
kong.enabled: true | ||
auth.enabled: true | ||
auth.environment.GOTRUE_SAML_ENABLED: "false" | ||
asserts: | ||
- notMatchRegex: | ||
path: data["template.yml"] | ||
pattern: "name: auth-v1-open-sso-acs" | ||
- notMatchRegex: | ||
path: data["template.yml"] | ||
pattern: "name: auth-v1-open-sso-metadata" |
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