-
Notifications
You must be signed in to change notification settings - Fork 219
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
Conversation
In order to lower resource usage and have a faster runtime, PRs will not run Cloud tests automatically. |
# Conflicts: # internal/resources/grafana/resource_sso_settings.go
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, |
There was a problem hiding this comment.
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}
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
This PR adds support for SAML to the
grafana_sso_settings
resource.Solves https://github.com/grafana/identity-access-team/issues/593.