mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-07 09:30:10 +00:00
fix: add apple as identity provider type to settings v2 api (#8472)
# Which Problems Are Solved Apple is not availabe as IDP type in the settings v2 API. # How the Problems Are Solved Add Apple as type. # Additional Changes None # Additional Context None Co-authored-by: Max Peintner <max@caos.ch>
This commit is contained in:
parent
f6da528296
commit
1a75414315
@ -216,6 +216,8 @@ func idpTypeToPb(idpType domain.IDPType) settings.IdentityProviderType {
|
|||||||
return settings.IdentityProviderType_IDENTITY_PROVIDER_TYPE_GITLAB_SELF_HOSTED
|
return settings.IdentityProviderType_IDENTITY_PROVIDER_TYPE_GITLAB_SELF_HOSTED
|
||||||
case domain.IDPTypeGoogle:
|
case domain.IDPTypeGoogle:
|
||||||
return settings.IdentityProviderType_IDENTITY_PROVIDER_TYPE_GOOGLE
|
return settings.IdentityProviderType_IDENTITY_PROVIDER_TYPE_GOOGLE
|
||||||
|
case domain.IDPTypeApple:
|
||||||
|
return settings.IdentityProviderType_IDENTITY_PROVIDER_TYPE_APPLE
|
||||||
case domain.IDPTypeSAML:
|
case domain.IDPTypeSAML:
|
||||||
return settings.IdentityProviderType_IDENTITY_PROVIDER_TYPE_SAML
|
return settings.IdentityProviderType_IDENTITY_PROVIDER_TYPE_SAML
|
||||||
default:
|
default:
|
||||||
|
@ -466,6 +466,10 @@ func Test_idpTypeToPb(t *testing.T) {
|
|||||||
args: args{domain.IDPTypeGoogle},
|
args: args{domain.IDPTypeGoogle},
|
||||||
want: settings.IdentityProviderType_IDENTITY_PROVIDER_TYPE_GOOGLE,
|
want: settings.IdentityProviderType_IDENTITY_PROVIDER_TYPE_GOOGLE,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
args: args{domain.IDPTypeApple},
|
||||||
|
want: settings.IdentityProviderType_IDENTITY_PROVIDER_TYPE_APPLE,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
args: args{domain.IDPTypeSAML},
|
args: args{domain.IDPTypeSAML},
|
||||||
want: settings.IdentityProviderType_IDENTITY_PROVIDER_TYPE_SAML,
|
want: settings.IdentityProviderType_IDENTITY_PROVIDER_TYPE_SAML,
|
||||||
|
@ -148,5 +148,6 @@ enum IdentityProviderType {
|
|||||||
IDENTITY_PROVIDER_TYPE_GITLAB = 8;
|
IDENTITY_PROVIDER_TYPE_GITLAB = 8;
|
||||||
IDENTITY_PROVIDER_TYPE_GITLAB_SELF_HOSTED = 9;
|
IDENTITY_PROVIDER_TYPE_GITLAB_SELF_HOSTED = 9;
|
||||||
IDENTITY_PROVIDER_TYPE_GOOGLE = 10;
|
IDENTITY_PROVIDER_TYPE_GOOGLE = 10;
|
||||||
IDENTITY_PROVIDER_TYPE_SAML=11;
|
IDENTITY_PROVIDER_TYPE_SAML = 11;
|
||||||
|
IDENTITY_PROVIDER_TYPE_APPLE = 12;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user