Skip to content

Conversation

hiranya911
Copy link
Contributor

Added CreateSAMLProviderConfig() and UpdateSAMLProviderConfig() functions.

Also introducing a nestedMap helper type that makes it easier to model the create/update parameters as a nested map and build update masks.

Copy link
Member

@lahirumaramba lahirumaramba left a comment

Choose a reason for hiding this comment

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

LGTM!

// SSOURL sets the SSOURL field of the new config.
func (config *SAMLProviderConfigToCreate) SSOURL(url string) *SAMLProviderConfigToCreate {
config.set(ssoURLKey, url)
return config
Copy link
Member

Choose a reason for hiding this comment

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

Very minor thing... some places in the code we set the values first and then return the config object and in other places we do a single line return return config.set(ssoURLKey, url). It might be better to keep it consistent everywhere

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. Fixed.

@hiranya911 hiranya911 merged commit 754ef55 into dev Oct 11, 2019
@hiranya911 hiranya911 deleted the hkj-saml-update branch October 11, 2019 18:18
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.

2 participants