Search in sources :

Example 1 with CORSManagementServiceException

use of org.wso2.carbon.identity.cors.mgt.core.exception.CORSManagementServiceException in project carbon-identity-framework by wso2.

the class CORSManagementServiceImpl method setCORSOrigins.

/**
 * {@inheritDoc}
 */
@Override
public void setCORSOrigins(String applicationId, List<String> origins, String tenantDomain) throws CORSManagementServiceException {
    int tenantId = getTenantId(tenantDomain);
    ApplicationBasicInfo applicationBasicInfo = getApplicationBasicInfo(applicationId, tenantDomain);
    // Check for duplicate entries.
    if (CORSConfigurationUtils.hasDuplicates(origins)) {
        throw handleClientException(ERROR_CODE_DUPLICATE_ORIGINS);
    }
    List<Origin> originList = CORSConfigurationUtils.createOriginList(origins);
    // Set the CORS origins.
    getCORSOriginDAO().setCORSOrigins(applicationBasicInfo.getApplicationId(), originList.stream().map(origin -> {
        // Create the CORS origin.
        CORSOrigin corsOrigin = new CORSOrigin();
        corsOrigin.setOrigin(origin.getValue());
        return corsOrigin;
    }).collect(Collectors.toList()), tenantId);
}
Also used : Origin(org.wso2.carbon.identity.cors.mgt.core.model.Origin) CORSOrigin(org.wso2.carbon.identity.cors.mgt.core.model.CORSOrigin) CORSOrigin(org.wso2.carbon.identity.cors.mgt.core.model.CORSOrigin) ApplicationBasicInfo(org.wso2.carbon.identity.application.common.model.ApplicationBasicInfo)

Example 2 with CORSManagementServiceException

use of org.wso2.carbon.identity.cors.mgt.core.exception.CORSManagementServiceException in project carbon-identity-framework by wso2.

the class CORSManagementServiceImpl method addCORSOrigins.

/**
 * {@inheritDoc}
 */
@Override
public void addCORSOrigins(String applicationId, List<String> origins, String tenantDomain) throws CORSManagementServiceException {
    int tenantId = getTenantId(tenantDomain);
    ApplicationBasicInfo applicationBasicInfo = getApplicationBasicInfo(applicationId, tenantDomain);
    List<Origin> originList = CORSConfigurationUtils.createOriginList(origins);
    // Check if the CORS origins are already present.
    List<CORSOrigin> existingCORSOrigins = getCORSOriginDAO().getCORSOriginsByApplicationId(applicationBasicInfo.getApplicationId(), tenantId);
    List<String> corsOriginIdList = existingCORSOrigins.stream().map(CORSOrigin::getId).collect(Collectors.toList());
    for (Origin origin : originList) {
        if (corsOriginIdList.contains(origin.getValue())) {
            // CORS origin is already registered for the application.
            if (log.isDebugEnabled()) {
                log.debug(String.format("Duplicate addition of existing CORS Origin (%s) for the " + "application id: %s, tenant domain: %s", origin, applicationId, tenantDomain));
            }
            throw handleClientException(ERROR_CODE_ORIGIN_PRESENT, tenantDomain, origin.getValue());
        }
    }
    // Add the CORS origins.
    getCORSOriginDAO().addCORSOrigins(applicationBasicInfo.getApplicationId(), originList.stream().map(origin -> {
        // Create the CORS origin.
        CORSOrigin corsOrigin = new CORSOrigin();
        corsOrigin.setOrigin(origin.getValue());
        return corsOrigin;
    }).collect(Collectors.toList()), tenantId);
}
Also used : Origin(org.wso2.carbon.identity.cors.mgt.core.model.Origin) CORSOrigin(org.wso2.carbon.identity.cors.mgt.core.model.CORSOrigin) CORSOrigin(org.wso2.carbon.identity.cors.mgt.core.model.CORSOrigin) ApplicationBasicInfo(org.wso2.carbon.identity.application.common.model.ApplicationBasicInfo)

Example 3 with CORSManagementServiceException

use of org.wso2.carbon.identity.cors.mgt.core.exception.CORSManagementServiceException in project carbon-identity-framework by wso2.

the class CORSManagementServiceImpl method getApplicationCORSOrigins.

/**
 * {@inheritDoc}
 */
@Override
public List<CORSOrigin> getApplicationCORSOrigins(String applicationId, String tenantDomain) throws CORSManagementServiceException {
    int tenantId = getTenantId(tenantDomain);
    ApplicationBasicInfo applicationBasicInfo = getApplicationBasicInfo(applicationId, tenantDomain);
    return Collections.unmodifiableList(getCORSOriginDAO().getCORSOriginsByApplicationId(applicationBasicInfo.getApplicationId(), tenantId));
}
Also used : ApplicationBasicInfo(org.wso2.carbon.identity.application.common.model.ApplicationBasicInfo)

Example 4 with CORSManagementServiceException

use of org.wso2.carbon.identity.cors.mgt.core.exception.CORSManagementServiceException in project carbon-identity-framework by wso2.

the class CORSManagementServiceTests method testAddCORSOrigins.

@Test
public void testAddCORSOrigins() throws CORSManagementServiceException {
    corsManagementService.addCORSOrigins(SampleApp1.UUID, SAMPLE_ORIGIN_LIST_1, SUPER_TENANT_DOMAIN_NAME);
    List<CORSOrigin> retrievedCORSOrigins = new ArrayList<>();
    try (Connection connection = IdentityDatabaseUtil.getDBConnection(false)) {
        try (NamedPreparedStatement namedPreparedStatement = new NamedPreparedStatement(connection, GET_CORS_ORIGINS_BY_APPLICATION_ID)) {
            namedPreparedStatement.setInt(1, SUPER_TENANT_ID);
            namedPreparedStatement.setInt(2, SampleApp1.ID);
            try (ResultSet resultSet = namedPreparedStatement.executeQuery()) {
                while (resultSet.next()) {
                    CORSOrigin corsOrigin = new CORSOrigin();
                    corsOrigin.setId(resultSet.getString(CORSOriginTableColumns.ID));
                    corsOrigin.setOrigin(resultSet.getString(CORSOriginTableColumns.ORIGIN));
                    retrievedCORSOrigins.add(corsOrigin);
                }
            }
        }
    } catch (SQLException e) {
        throw handleServerException(ERROR_CODE_CORS_RETRIEVE, e, SUPER_TENANT_DOMAIN_NAME);
    }
    assertEquals(retrievedCORSOrigins.stream().map(CORSOrigin::getOrigin).collect(Collectors.toList()), SAMPLE_ORIGIN_LIST_1);
}
Also used : CORSOrigin(org.wso2.carbon.identity.cors.mgt.core.model.CORSOrigin) NamedPreparedStatement(org.wso2.carbon.database.utils.jdbc.NamedPreparedStatement) SQLException(java.sql.SQLException) ArrayList(java.util.ArrayList) Connection(java.sql.Connection) ResultSet(java.sql.ResultSet) Test(org.testng.annotations.Test) PrepareForTest(org.powermock.core.classloader.annotations.PrepareForTest)

Example 5 with CORSManagementServiceException

use of org.wso2.carbon.identity.cors.mgt.core.exception.CORSManagementServiceException in project identity-api-server by wso2.

the class ServerApplicationManagementService method deleteInbound.

private void deleteInbound(String applicationId, String inboundType) {
    ServiceProvider appToUpdate;
    try {
        appToUpdate = cloneApplication(applicationId);
    } catch (APIError e) {
        if (ErrorMessage.APPLICATION_NOT_FOUND.getCode().equals(e.getCode())) {
            // Ignoring the delete operation and return 204 response code, since the resource does not exist.
            return;
        }
        throw e;
    }
    InboundAuthenticationConfig inboundAuthConfig = appToUpdate.getInboundAuthenticationConfig();
    if (ArrayUtils.isNotEmpty(inboundAuthConfig.getInboundAuthenticationRequestConfigs())) {
        // Remove the deleted inbound type by filtering it out of the available inbounds and doing an update.
        InboundAuthenticationRequestConfig[] filteredInbounds = Arrays.stream(inboundAuthConfig.getInboundAuthenticationRequestConfigs()).filter(inbound -> !StringUtils.equals(inboundType, inbound.getInboundAuthType())).toArray(InboundAuthenticationRequestConfig[]::new);
        appToUpdate.getInboundAuthenticationConfig().setInboundAuthenticationRequestConfigs(filteredInbounds);
        updateServiceProvider(applicationId, appToUpdate);
    }
    // Delete the associated CORS origins if the inboundType is oauth2.
    if (inboundType.equals(OAUTH2)) {
        String tenantDomain = PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantDomain();
        CORSManagementService corsManagementService = ApplicationManagementServiceHolder.getCorsManagementService();
        try {
            List<CORSOrigin> existingCORSOrigins = corsManagementService.getApplicationCORSOrigins(applicationId, tenantDomain);
            corsManagementService.deleteCORSOrigins(applicationId, existingCORSOrigins.stream().map(CORSOrigin::getId).collect(Collectors.toList()), tenantDomain);
        } catch (CORSManagementServiceException e) {
            log.error("Error while trying to remove CORS origins associated with the application.", e);
        }
    }
}
Also used : StringUtils(org.apache.commons.lang.StringUtils) OpenIDConnectConfiguration(org.wso2.carbon.identity.api.server.application.management.v1.OpenIDConnectConfiguration) Arrays(java.util.Arrays) AbstractUserStoreManager(org.wso2.carbon.user.core.common.AbstractUserStoreManager) ERROR_PROCESSING_REQUEST(org.wso2.carbon.identity.api.server.application.management.common.ApplicationManagementConstants.ErrorMessage.ERROR_PROCESSING_REQUEST) BuildProvisioningConfiguration(org.wso2.carbon.identity.api.server.application.management.v1.core.functions.application.provisioning.BuildProvisioningConfiguration) Utils(org.wso2.carbon.identity.api.server.application.management.v1.core.functions.Utils) PrimitiveCondition(org.wso2.carbon.identity.configuration.mgt.core.search.PrimitiveCondition) Autowired(org.springframework.beans.factory.annotation.Autowired) INBOUND_NOT_CONFIGURED(org.wso2.carbon.identity.api.server.application.management.common.ApplicationManagementConstants.ErrorMessage.INBOUND_NOT_CONFIGURED) ApplicationResponseModel(org.wso2.carbon.identity.api.server.application.management.v1.ApplicationResponseModel) InboundFunctions.getInboundAuthKey(org.wso2.carbon.identity.api.server.application.management.v1.core.functions.application.inbound.InboundFunctions.getInboundAuthKey) RealmService(org.wso2.carbon.user.core.service.RealmService) ERROR_CODE_RESOURCE_LIMIT_REACHED(org.wso2.carbon.identity.api.server.common.Constants.ERROR_CODE_RESOURCE_LIMIT_REACHED) ApplicationTemplateApiModelToTemplate(org.wso2.carbon.identity.api.server.application.management.v1.core.functions.template.ApplicationTemplateApiModelToTemplate) Condition(org.wso2.carbon.identity.configuration.mgt.core.search.Condition) APPLICATION_CREATION_WITH_TEMPLATES_NOT_IMPLEMENTED(org.wso2.carbon.identity.api.server.application.management.common.ApplicationManagementConstants.ErrorMessage.APPLICATION_CREATION_WITH_TEMPLATES_NOT_IMPLEMENTED) CORSManagementServiceClientException(org.wso2.carbon.identity.cors.mgt.core.exception.CORSManagementServiceClientException) FilterTreeBuilder(org.wso2.carbon.identity.core.model.FilterTreeBuilder) IdentityApplicationManagementClientException(org.wso2.carbon.identity.application.common.IdentityApplicationManagementClientException) StandardCharsets(java.nio.charset.StandardCharsets) IOUtils(org.apache.commons.io.IOUtils) CORSOrigin(org.wso2.carbon.identity.cors.mgt.core.model.CORSOrigin) AuthProtocolMetadata(org.wso2.carbon.identity.api.server.application.management.v1.AuthProtocolMetadata) InboundAuthenticationRequestConfig(org.wso2.carbon.identity.application.common.model.InboundAuthenticationRequestConfig) TemplateMgtConstants(org.wso2.carbon.identity.template.mgt.TemplateMgtConstants) LogFactory(org.apache.commons.logging.LogFactory) OAuthInboundFunctions(org.wso2.carbon.identity.api.server.application.management.v1.core.functions.application.inbound.oauth2.OAuthInboundFunctions) ApplicationBasicInfoToApiModel(org.wso2.carbon.identity.api.server.application.management.v1.core.functions.application.ApplicationBasicInfoToApiModel) IdentityException(org.wso2.carbon.identity.base.IdentityException) ProvisioningConfiguration(org.wso2.carbon.identity.api.server.application.management.v1.ProvisioningConfiguration) ContextLoader(org.wso2.carbon.identity.api.server.common.ContextLoader) ApplicationManagementService(org.wso2.carbon.identity.application.mgt.ApplicationManagementService) SearchContext(org.apache.cxf.jaxrs.ext.search.SearchContext) ComplexCondition(org.wso2.carbon.identity.configuration.mgt.core.search.ComplexCondition) InboundAuthenticationConfig(org.wso2.carbon.identity.application.common.model.InboundAuthenticationConfig) CORSManagementServiceException(org.wso2.carbon.identity.cors.mgt.core.exception.CORSManagementServiceException) ApplicationManagementConstants(org.wso2.carbon.identity.api.server.application.management.common.ApplicationManagementConstants) UpdateProvisioningConfiguration(org.wso2.carbon.identity.api.server.application.management.v1.core.functions.application.provisioning.UpdateProvisioningConfiguration) ArrayList(java.util.ArrayList) ApplicationTemplatesListItem(org.wso2.carbon.identity.api.server.application.management.v1.ApplicationTemplatesListItem) EQUALS(org.wso2.carbon.identity.configuration.mgt.core.search.constant.ConditionType.PrimitiveOperator.EQUALS) InboundProtocolListItem(org.wso2.carbon.identity.api.server.application.management.v1.InboundProtocolListItem) SAMLInboundFunctions(org.wso2.carbon.identity.api.server.application.management.v1.core.functions.application.inbound.saml.SAMLInboundFunctions) ResidentApplication(org.wso2.carbon.identity.api.server.application.management.v1.ResidentApplication) ApiModelToServiceProvider(org.wso2.carbon.identity.api.server.application.management.v1.core.functions.application.ApiModelToServiceProvider) ERROR_APPLICATION_LIMIT_REACHED(org.wso2.carbon.identity.api.server.application.management.common.ApplicationManagementConstants.ErrorMessage.ERROR_APPLICATION_LIMIT_REACHED) Utils.buildNotImplementedError(org.wso2.carbon.identity.api.server.application.management.v1.core.functions.Utils.buildNotImplementedError) ApplicationManagementServiceHolder(org.wso2.carbon.identity.api.server.application.management.common.ApplicationManagementServiceHolder) OAUTH2(org.wso2.carbon.identity.application.authentication.framework.util.FrameworkConstants.StandardInboundProtocols.OAUTH2) ApplicationModel(org.wso2.carbon.identity.api.server.application.management.v1.ApplicationModel) TemplateToApplicationTemplateListItem(org.wso2.carbon.identity.api.server.application.management.v1.core.functions.template.TemplateToApplicationTemplateListItem) ImportResponse(org.wso2.carbon.identity.application.common.model.ImportResponse) PrimitiveStatement(org.apache.cxf.jaxrs.ext.search.PrimitiveStatement) IOException(java.io.IOException) APIError(org.wso2.carbon.identity.api.server.common.error.APIError) UpdateServiceProvider(org.wso2.carbon.identity.api.server.application.management.v1.core.functions.application.UpdateServiceProvider) PassiveSTSInboundFunctions(org.wso2.carbon.identity.api.server.application.management.v1.core.functions.application.inbound.PassiveSTSInboundFunctions) SearchCondition(org.apache.cxf.jaxrs.ext.search.SearchCondition) InboundFunctions.rollbackInbound(org.wso2.carbon.identity.api.server.application.management.v1.core.functions.application.inbound.InboundFunctions.rollbackInbound) StandardInboundProtocols(org.wso2.carbon.identity.application.authentication.framework.util.FrameworkConstants.StandardInboundProtocols) CORSManagementService(org.wso2.carbon.identity.cors.mgt.core.CORSManagementService) URL(java.net.URL) URISyntaxException(java.net.URISyntaxException) BiFunction(java.util.function.BiFunction) CustomInboundProtocolConfiguration(org.wso2.carbon.identity.api.server.application.management.v1.CustomInboundProtocolConfiguration) ERROR_CODE_INVALID_APP_ID(org.wso2.carbon.identity.cors.mgt.core.constant.ErrorMessages.ERROR_CODE_INVALID_APP_ID) ApplicationListItem(org.wso2.carbon.identity.api.server.application.management.v1.ApplicationListItem) UNEXPECTED_SERVER_ERROR(org.wso2.carbon.identity.application.common.util.IdentityApplicationConstants.Error.UNEXPECTED_SERVER_ERROR) WSTrustConfiguration(org.wso2.carbon.identity.api.server.application.management.v1.WSTrustConfiguration) IdentityApplicationManagementException(org.wso2.carbon.identity.application.common.IdentityApplicationManagementException) User(org.wso2.carbon.identity.application.common.model.User) ApplicationPatchModel(org.wso2.carbon.identity.api.server.application.management.v1.ApplicationPatchModel) ServiceProvider(org.wso2.carbon.identity.application.common.model.ServiceProvider) Collectors(java.util.stream.Collectors) Link(org.wso2.carbon.identity.api.server.application.management.v1.Link) ApplicationConstants(org.wso2.carbon.identity.application.mgt.ApplicationConstants) List(java.util.List) PASSIVE_STS(org.wso2.carbon.identity.application.authentication.framework.util.FrameworkConstants.StandardInboundProtocols.PASSIVE_STS) InboundAuthConfigToApiModel(org.wso2.carbon.identity.api.server.application.management.v1.core.functions.application.inbound.InboundAuthConfigToApiModel) ApplicationTemplatesList(org.wso2.carbon.identity.api.server.application.management.v1.ApplicationTemplatesList) InboundFunctions.rollbackInbounds(org.wso2.carbon.identity.api.server.application.management.v1.core.functions.application.inbound.InboundFunctions.rollbackInbounds) SAML2(org.wso2.carbon.identity.application.authentication.framework.util.FrameworkConstants.StandardInboundProtocols.SAML2) InboundFunctions.getInboundAuthenticationRequestConfig(org.wso2.carbon.identity.api.server.application.management.v1.core.functions.application.inbound.InboundFunctions.getInboundAuthenticationRequestConfig) Template(org.wso2.carbon.identity.template.mgt.model.Template) SAML2ServiceProvider(org.wso2.carbon.identity.api.server.application.management.v1.SAML2ServiceProvider) PassiveStsConfiguration(org.wso2.carbon.identity.api.server.application.management.v1.PassiveStsConfiguration) WS_TRUST(org.wso2.carbon.identity.application.authentication.framework.util.FrameworkConstants.StandardInboundProtocols.WS_TRUST) INVALID_REQUEST(org.wso2.carbon.identity.application.common.util.IdentityApplicationConstants.Error.INVALID_REQUEST) Attachment(org.apache.cxf.jaxrs.ext.multipart.Attachment) PrivilegedCarbonContext(org.wso2.carbon.context.PrivilegedCarbonContext) SpFileContent(org.wso2.carbon.identity.application.common.model.SpFileContent) ApplicationOwner(org.wso2.carbon.identity.api.server.application.management.v1.ApplicationOwner) Function(java.util.function.Function) APPLICATION_MANAGEMENT_PATH_COMPONENT(org.wso2.carbon.identity.api.server.application.management.common.ApplicationManagementConstants.APPLICATION_MANAGEMENT_PATH_COMPONENT) TemplateManagementClientException(org.wso2.carbon.identity.template.mgt.exception.TemplateManagementClientException) CollectionUtils(org.apache.commons.collections.CollectionUtils) ErrorMessages(org.wso2.carbon.identity.cors.mgt.core.constant.ErrorMessages) Util(org.wso2.carbon.identity.api.server.common.Util) InboundFunctions.updateOrInsertInbound(org.wso2.carbon.identity.api.server.application.management.v1.core.functions.application.inbound.InboundFunctions.updateOrInsertInbound) TemplateToApplicationTemplate(org.wso2.carbon.identity.api.server.application.management.v1.core.functions.template.TemplateToApplicationTemplate) WSTrustInboundFunctions(org.wso2.carbon.identity.api.server.application.management.v1.core.functions.application.inbound.WSTrustInboundFunctions) TemplateManager(org.wso2.carbon.identity.template.mgt.TemplateManager) ApplicationBasicInfo(org.wso2.carbon.identity.application.common.model.ApplicationBasicInfo) ServiceProviderToApiModel(org.wso2.carbon.identity.api.server.application.management.v1.core.functions.application.ServiceProviderToApiModel) Utils.buildBadRequestError(org.wso2.carbon.identity.api.server.application.management.v1.core.functions.Utils.buildBadRequestError) ExpressionNode(org.wso2.carbon.identity.core.model.ExpressionNode) MalformedURLException(java.net.MalformedURLException) ErrorMessage(org.wso2.carbon.identity.api.server.application.management.common.ApplicationManagementConstants.ErrorMessage) CustomInboundFunctions(org.wso2.carbon.identity.api.server.application.management.v1.core.functions.application.inbound.custom.CustomInboundFunctions) ResourceSearchBean(org.wso2.carbon.identity.configuration.mgt.core.model.ResourceSearchBean) Node(org.wso2.carbon.identity.core.model.Node) TemplateManagementException(org.wso2.carbon.identity.template.mgt.exception.TemplateManagementException) ApplicationTemplateModel(org.wso2.carbon.identity.api.server.application.management.v1.ApplicationTemplateModel) SAML2Configuration(org.wso2.carbon.identity.api.server.application.management.v1.SAML2Configuration) ApplicationListResponse(org.wso2.carbon.identity.api.server.application.management.v1.ApplicationListResponse) IdentityUtil(org.wso2.carbon.identity.core.util.IdentityUtil) Log(org.apache.commons.logging.Log) ConditionType(org.apache.cxf.jaxrs.ext.search.ConditionType) Collections(java.util.Collections) ArrayUtils(org.apache.commons.lang.ArrayUtils) InputStream(java.io.InputStream) CORSOrigin(org.wso2.carbon.identity.cors.mgt.core.model.CORSOrigin) InboundAuthenticationConfig(org.wso2.carbon.identity.application.common.model.InboundAuthenticationConfig) ApiModelToServiceProvider(org.wso2.carbon.identity.api.server.application.management.v1.core.functions.application.ApiModelToServiceProvider) UpdateServiceProvider(org.wso2.carbon.identity.api.server.application.management.v1.core.functions.application.UpdateServiceProvider) ServiceProvider(org.wso2.carbon.identity.application.common.model.ServiceProvider) SAML2ServiceProvider(org.wso2.carbon.identity.api.server.application.management.v1.SAML2ServiceProvider) InboundAuthenticationRequestConfig(org.wso2.carbon.identity.application.common.model.InboundAuthenticationRequestConfig) InboundFunctions.getInboundAuthenticationRequestConfig(org.wso2.carbon.identity.api.server.application.management.v1.core.functions.application.inbound.InboundFunctions.getInboundAuthenticationRequestConfig) APIError(org.wso2.carbon.identity.api.server.common.error.APIError) CORSManagementServiceException(org.wso2.carbon.identity.cors.mgt.core.exception.CORSManagementServiceException) CORSManagementService(org.wso2.carbon.identity.cors.mgt.core.CORSManagementService)

Aggregations

CORSOrigin (org.wso2.carbon.identity.cors.mgt.core.model.CORSOrigin)10 Connection (java.sql.Connection)6 SQLException (java.sql.SQLException)6 PrepareForTest (org.powermock.core.classloader.annotations.PrepareForTest)6 Test (org.testng.annotations.Test)6 NamedPreparedStatement (org.wso2.carbon.database.utils.jdbc.NamedPreparedStatement)6 ResultSet (java.sql.ResultSet)5 ApplicationBasicInfo (org.wso2.carbon.identity.application.common.model.ApplicationBasicInfo)5 CORSManagementServiceException (org.wso2.carbon.identity.cors.mgt.core.exception.CORSManagementServiceException)5 ArrayList (java.util.ArrayList)4 CORSManagementServiceClientException (org.wso2.carbon.identity.cors.mgt.core.exception.CORSManagementServiceClientException)4 PreparedStatement (java.sql.PreparedStatement)3 APIError (org.wso2.carbon.identity.api.server.common.error.APIError)3 IdentityApplicationManagementException (org.wso2.carbon.identity.application.common.IdentityApplicationManagementException)3 Response (javax.ws.rs.core.Response)2 Origin (org.wso2.carbon.identity.cors.mgt.core.model.Origin)2 IdentityOAuthAdminException (org.wso2.carbon.identity.oauth.IdentityOAuthAdminException)2 OAuthConsumerAppDTO (org.wso2.carbon.identity.oauth.dto.OAuthConsumerAppDTO)2 IOException (java.io.IOException)1 InputStream (java.io.InputStream)1