add applicationtype and add application id in update
All checks were successful
Build and Publish / build-release (push) Successful in 2m0s
All checks were successful
Build and Publish / build-release (push) Successful in 2m0s
This commit is contained in:
@@ -156,6 +156,7 @@ func (wr *wrappedOIDCAppReconciler) Reconcile(ctx context.Context, ztdClient *cl
|
||||
ProjectId: *project.Status.ProjectId,
|
||||
ApplicationType: &application.CreateApplicationRequest_OidcConfiguration{
|
||||
OidcConfiguration: &application.CreateOIDCApplicationRequest{
|
||||
ApplicationType: application.OIDCApplicationType(application.OIDCApplicationType_value[wr.OIDCApp.Spec.AppType]),
|
||||
RedirectUris: wr.OIDCApp.Spec.RedirectUris,
|
||||
ResponseTypes: responseTypes,
|
||||
GrantTypes: grantTypes,
|
||||
@@ -203,10 +204,12 @@ func (wr *wrappedOIDCAppReconciler) Reconcile(ctx context.Context, ztdClient *cl
|
||||
} else {
|
||||
_, err := ztdClient.ApplicationServiceV2().UpdateApplication(ctx,
|
||||
&application.UpdateApplicationRequest{
|
||||
Name: wr.OIDCApp.Name,
|
||||
ProjectId: *project.Status.ProjectId,
|
||||
Name: wr.OIDCApp.Name,
|
||||
ProjectId: *project.Status.ProjectId,
|
||||
ApplicationId: *appid,
|
||||
ApplicationType: &application.UpdateApplicationRequest_OidcConfiguration{
|
||||
OidcConfiguration: &application.UpdateOIDCApplicationConfigurationRequest{
|
||||
ApplicationType: ptr.To(application.OIDCApplicationType(application.OIDCApplicationType_value[wr.OIDCApp.Spec.AppType])),
|
||||
RedirectUris: wr.OIDCApp.Spec.RedirectUris,
|
||||
ResponseTypes: responseTypes,
|
||||
GrantTypes: grantTypes,
|
||||
|
||||
Reference in New Issue
Block a user