mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 21:37:32 +00:00
feat: add saml custom attribute action and translations (#6341)
* feat: add saml custom attribute action and translations * chore: update saml dependency * fix: apply suggestions from code review Co-authored-by: Livio Spring <livio.a@gmail.com> * fix: custom attribute action with variadic parameter * docs: add customize saml response docs * docs: update docs/docs/apis/actions/customize-samlresponse.md Co-authored-by: Livio Spring <livio.a@gmail.com> * docs: update docs/docs/apis/actions/customize-samlresponse.md Co-authored-by: Livio Spring <livio.a@gmail.com> --------- Co-authored-by: Livio Spring <livio.a@gmail.com>
This commit is contained in:
@@ -21,6 +21,7 @@ const (
|
||||
FlowTypeExternalAuthentication
|
||||
FlowTypeCustomiseToken
|
||||
FlowTypeInternalAuthentication
|
||||
FlowTypeCustomizeSAMLResponse
|
||||
flowTypeCount
|
||||
)
|
||||
|
||||
@@ -56,6 +57,10 @@ func (s FlowType) TriggerTypes() []TriggerType {
|
||||
TriggerTypePreCreation,
|
||||
TriggerTypePostCreation,
|
||||
}
|
||||
case FlowTypeCustomizeSAMLResponse:
|
||||
return []TriggerType{
|
||||
TriggerTypePreSAMLResponseCreation,
|
||||
}
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
@@ -80,6 +85,8 @@ func (s FlowType) LocalizationKey() string {
|
||||
return "Action.Flow.Type.CustomiseToken"
|
||||
case FlowTypeInternalAuthentication:
|
||||
return "Action.Flow.Type.InternalAuthentication"
|
||||
case FlowTypeCustomizeSAMLResponse:
|
||||
return "Action.Flow.Type.CustomizeSAMLResponse"
|
||||
default:
|
||||
return "Action.Flow.Type.Unspecified"
|
||||
}
|
||||
@@ -94,6 +101,7 @@ const (
|
||||
TriggerTypePostCreation
|
||||
TriggerTypePreUserinfoCreation
|
||||
TriggerTypePreAccessTokenCreation
|
||||
TriggerTypePreSAMLResponseCreation
|
||||
triggerTypeCount
|
||||
)
|
||||
|
||||
@@ -124,6 +132,8 @@ func (s TriggerType) LocalizationKey() string {
|
||||
return "Action.TriggerType.PreUserinfoCreation"
|
||||
case TriggerTypePreAccessTokenCreation:
|
||||
return "Action.TriggerType.PreAccessTokenCreation"
|
||||
case TriggerTypePreSAMLResponseCreation:
|
||||
return "Action.TriggerType.PreSAMLResponseCreation"
|
||||
default:
|
||||
return "Action.TriggerType.Unspecified"
|
||||
}
|
||||
|
Reference in New Issue
Block a user