feat(proto): Add ProviderType Field to OIDC API Protos
This commit is contained in:
1 parent
828742c46c
commit
e1f3020b28
4 files changed
+72
-22
No files matched your search
@@ -27,6 +27,7 @@ type OidcAuthMethodAttributes struct {
|
||||
DisableDiscoveredConfigValidation bool `json:"disable_discovered_config_validation,omitempty"`
|
||||
DryRun bool `json:"dry_run,omitempty"`
|
||||
Prompts []string `json:"prompts,omitempty"`
|
||||
ProviderType string `json:"provider_type,omitempty"`
|
||||
}
|
||||
|
||||
func AttributesMapToOidcAuthMethodAttributes(in map[string]any) (*OidcAuthMethodAttributes, error) {
|
||||
|
||||
@@ -863,6 +863,30 @@ func DefaultOidcAuthMethodPrompts() Option {
|
||||
}
|
||||
}
|
||||
|
||||
func WithOidcAuthMethodProviderType(inProviderType string) Option {
|
||||
return func(o *options) {
|
||||
raw, ok := o.postMap["attributes"]
|
||||
if !ok {
|
||||
raw = any(map[string]any{})
|
||||
}
|
||||
val := raw.(map[string]any)
|
||||
val["provider_type"] = inProviderType
|
||||
o.postMap["attributes"] = val
|
||||
}
|
||||
}
|
||||
|
||||
func DefaultOidcAuthMethodProviderType() Option {
|
||||
return func(o *options) {
|
||||
raw, ok := o.postMap["attributes"]
|
||||
if !ok {
|
||||
raw = any(map[string]any{})
|
||||
}
|
||||
val := raw.(map[string]any)
|
||||
val["provider_type"] = nil
|
||||
o.postMap["attributes"] = val
|
||||
}
|
||||
}
|
||||
|
||||
func WithOidcAuthMethodSigningAlgorithms(inSigningAlgorithms []string) Option {
|
||||
return func(o *options) {
|
||||
raw, ok := o.postMap["attributes"]
|
||||
|
||||
Reference in new issue
Block a user