diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/AuthenticationServiceCEImpl.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/AuthenticationServiceCEImpl.java index b78a62992390..eec29d9169db 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/AuthenticationServiceCEImpl.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/AuthenticationServiceCEImpl.java @@ -140,8 +140,8 @@ public Mono getAuthorizationCodeURLForGenericOAuth2( }) .switchIfEmpty(Mono.error( new AppsmithException(AppsmithError.NO_RESOURCE_FOUND, FieldName.DATASOURCE, datasourceId))) - .flatMap(this::validateRequiredFieldsForGenericOAuth2) - .zipWith(Mono.zip(workspaceIdMono, trueEnvironmentIdCached, newPageMono)) + .flatMap(ds -> this.validateRequiredFieldsForGenericOAuth2(ds) + .zipWith(Mono.zip(workspaceIdMono, trueEnvironmentIdCached, newPageMono))) .flatMap(tuple2 -> { DatasourceStorage datasourceStorage = tuple2.getT1(); String workspaceId = tuple2.getT2().getT1();