From d9e30889f0db999e3da0bf46824e62d15f3905d3 Mon Sep 17 00:00:00 2001 From: Chamila Adhikarinayake Date: Fri, 1 Mar 2024 09:57:12 +0530 Subject: [PATCH] Add missing properties --- .../apimgt/rest/api/dcr/web/impl/RegistrationServiceImpl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/apimgt/org.wso2.carbon.apimgt.rest.api.dcr/src/main/java/org/wso2/carbon/apimgt/rest/api/dcr/web/impl/RegistrationServiceImpl.java b/components/apimgt/org.wso2.carbon.apimgt.rest.api.dcr/src/main/java/org/wso2/carbon/apimgt/rest/api/dcr/web/impl/RegistrationServiceImpl.java index 678bbef84606..e03e502f17ac 100644 --- a/components/apimgt/org.wso2.carbon.apimgt.rest.api.dcr/src/main/java/org/wso2/carbon/apimgt/rest/api/dcr/web/impl/RegistrationServiceImpl.java +++ b/components/apimgt/org.wso2.carbon.apimgt.rest.api.dcr/src/main/java/org/wso2/carbon/apimgt/rest/api/dcr/web/impl/RegistrationServiceImpl.java @@ -329,6 +329,8 @@ private OAuthApplicationInfo createApplication(String applicationName, OAuthAppR if (setUserStoreDomainInSubject) { LocalAndOutboundAuthenticationConfig localAndOutboundConfig = new LocalAndOutboundAuthenticationConfig(); + localAndOutboundConfig.setSkipConsent(true); // to prevent overriding + localAndOutboundConfig.setSkipLogoutConsent(true); // to prevent overriding localAndOutboundConfig.setUseUserstoreDomainInLocalSubjectIdentifier(true); serviceProvider.setLocalAndOutBoundAuthenticationConfig(localAndOutboundConfig); }