Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSO: add saml support for the sso settings resource #1474

Merged
merged 6 commits into from
Apr 12, 2024

Conversation

dmihai
Copy link
Contributor

@dmihai dmihai commented Apr 9, 2024

This PR adds support for SAML to the grafana_sso_settings resource.

Solves https://github.com/grafana/identity-access-team/issues/593.

Copy link

github-actions bot commented Apr 9, 2024

In order to lower resource usage and have a faster runtime, PRs will not run Cloud tests automatically.
To do so, a Grafana Labs employee must trigger the cloud acceptance tests workflow manually.

# Conflicts:
#	internal/resources/grafana/resource_sso_settings.go
@dmihai dmihai marked this pull request as ready for review April 9, 2024 15:11
@dmihai dmihai requested a review from a team as a code owner April 9, 2024 15:11
@dmihai dmihai requested a review from a team April 9, 2024 15:11
MinItems: 1,
Description: "The SSO settings set.",
MinItems: 0,
Description: "The OAuth2 settings set. Required for github, gitlab, google, azuread, okta, generic_oauth providers.",
Elem: oauth2SettingsSchema,
Copy link
Member

Choose a reason for hiding this comment

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

Needs a ConflictsWith: []string{samlSettingsKey}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch, I added ConflictsWith for saml as well.

@@ -63,6 +63,54 @@ func TestSSOSettings_basic(t *testing.T) {
}
}

func TestSSOSettings_basic_saml(t *testing.T) {
Copy link
Member

Choose a reason for hiding this comment

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

Did you run this manually? v11.1 won't be released for a while

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I manually ran this test locally against the main branch. I'm not sure how to make it run in CI at the moment because it requires enterprise and some flags to be enabled.

@dmihai dmihai merged commit 631b1bd into main Apr 12, 2024
27 checks passed
@dmihai dmihai deleted the dmihai/sso-saml-support branch April 12, 2024 13:57
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.

None yet

2 participants