mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 02:54:20 +00:00
fix(api): handle id_token_mapping in generic oidc provider correctly (#6428)
This commit is contained in:
parent
bb40e173bd
commit
94d13fd3e1
@ -231,23 +231,25 @@ func updateGenericOAuthProviderToCommand(req *admin_pb.UpdateGenericOAuthProvide
|
|||||||
|
|
||||||
func addGenericOIDCProviderToCommand(req *admin_pb.AddGenericOIDCProviderRequest) command.GenericOIDCProvider {
|
func addGenericOIDCProviderToCommand(req *admin_pb.AddGenericOIDCProviderRequest) command.GenericOIDCProvider {
|
||||||
return command.GenericOIDCProvider{
|
return command.GenericOIDCProvider{
|
||||||
Name: req.Name,
|
Name: req.Name,
|
||||||
Issuer: req.Issuer,
|
Issuer: req.Issuer,
|
||||||
ClientID: req.ClientId,
|
ClientID: req.ClientId,
|
||||||
ClientSecret: req.ClientSecret,
|
ClientSecret: req.ClientSecret,
|
||||||
Scopes: req.Scopes,
|
Scopes: req.Scopes,
|
||||||
IDPOptions: idp_grpc.OptionsToCommand(req.ProviderOptions),
|
IsIDTokenMapping: req.IsIdTokenMapping,
|
||||||
|
IDPOptions: idp_grpc.OptionsToCommand(req.ProviderOptions),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func updateGenericOIDCProviderToCommand(req *admin_pb.UpdateGenericOIDCProviderRequest) command.GenericOIDCProvider {
|
func updateGenericOIDCProviderToCommand(req *admin_pb.UpdateGenericOIDCProviderRequest) command.GenericOIDCProvider {
|
||||||
return command.GenericOIDCProvider{
|
return command.GenericOIDCProvider{
|
||||||
Name: req.Name,
|
Name: req.Name,
|
||||||
Issuer: req.Issuer,
|
Issuer: req.Issuer,
|
||||||
ClientID: req.ClientId,
|
ClientID: req.ClientId,
|
||||||
ClientSecret: req.ClientSecret,
|
ClientSecret: req.ClientSecret,
|
||||||
Scopes: req.Scopes,
|
Scopes: req.Scopes,
|
||||||
IDPOptions: idp_grpc.OptionsToCommand(req.ProviderOptions),
|
IsIDTokenMapping: req.IsIdTokenMapping,
|
||||||
|
IDPOptions: idp_grpc.OptionsToCommand(req.ProviderOptions),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -260,12 +260,13 @@ func addGenericOIDCProviderToCommand(req *mgmt_pb.AddGenericOIDCProviderRequest)
|
|||||||
|
|
||||||
func updateGenericOIDCProviderToCommand(req *mgmt_pb.UpdateGenericOIDCProviderRequest) command.GenericOIDCProvider {
|
func updateGenericOIDCProviderToCommand(req *mgmt_pb.UpdateGenericOIDCProviderRequest) command.GenericOIDCProvider {
|
||||||
return command.GenericOIDCProvider{
|
return command.GenericOIDCProvider{
|
||||||
Name: req.Name,
|
Name: req.Name,
|
||||||
Issuer: req.Issuer,
|
Issuer: req.Issuer,
|
||||||
ClientID: req.ClientId,
|
ClientID: req.ClientId,
|
||||||
ClientSecret: req.ClientSecret,
|
ClientSecret: req.ClientSecret,
|
||||||
Scopes: req.Scopes,
|
Scopes: req.Scopes,
|
||||||
IDPOptions: idp_grpc.OptionsToCommand(req.ProviderOptions),
|
IsIDTokenMapping: req.IsIdTokenMapping,
|
||||||
|
IDPOptions: idp_grpc.OptionsToCommand(req.ProviderOptions),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user