Search in sources :

Example 6 with CORSOrigin

use of org.wso2.carbon.identity.cors.mgt.core.model.CORSOrigin 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 7 with CORSOrigin

use of org.wso2.carbon.identity.cors.mgt.core.model.CORSOrigin in project carbon-identity-framework by wso2.

the class CacheBackedCORSOriginDAO method addCORSOriginsToCache.

/**
 * Add CORS origins of a particular application to the CORSOriginByAppId cache.
 *
 * @param corsOrigins The origins that should be added to the cache.
 * @param applicationId The id of the application.
 * @param tenantId The tenant domain specific to the cache entry.
 */
private void addCORSOriginsToCache(CORSOrigin[] corsOrigins, int applicationId, int tenantId) {
    CORSOriginByAppIdCacheKey cacheKey = new CORSOriginByAppIdCacheKey(applicationId);
    CORSOriginByAppIdCacheEntry cacheEntry = new CORSOriginByAppIdCacheEntry(corsOrigins);
    if (log.isDebugEnabled()) {
        log.debug("Adding CORS origins to Cache for application id: " + applicationId + ", tenant id: " + tenantId);
    }
    CORSOriginByAppIdCache.getInstance().addToCache(cacheKey, cacheEntry, tenantId);
}
Also used : CORSOriginByAppIdCacheEntry(org.wso2.carbon.identity.cors.mgt.core.internal.cache.CORSOriginByAppIdCacheEntry) CORSOriginByAppIdCacheKey(org.wso2.carbon.identity.cors.mgt.core.internal.cache.CORSOriginByAppIdCacheKey)

Example 8 with CORSOrigin

use of org.wso2.carbon.identity.cors.mgt.core.model.CORSOrigin 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 9 with CORSOrigin

use of org.wso2.carbon.identity.cors.mgt.core.model.CORSOrigin 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)

Example 10 with CORSOrigin

use of org.wso2.carbon.identity.cors.mgt.core.model.CORSOrigin in project carbon-identity-framework by wso2.

the class CORSManagementServiceTests method testGetCORSOriginsWithApplication.

@Test
public void testGetCORSOriginsWithApplication() throws CORSManagementServiceException {
    try (Connection connection = IdentityDatabaseUtil.getDBConnection(true)) {
        try {
            for (String origin : SAMPLE_ORIGIN_LIST_1) {
                try (NamedPreparedStatement namedPreparedStatement = new NamedPreparedStatement(connection, INSERT_CORS_ORIGIN)) {
                    // Origin is not present. Therefore add an origin.
                    namedPreparedStatement.setInt(1, SampleTenant.ID);
                    namedPreparedStatement.setString(2, origin);
                    namedPreparedStatement.setString(3, UUID.randomUUID().toString());
                    namedPreparedStatement.executeUpdate();
                    // Get origin id.
                    int corsOriginId;
                    try (ResultSet resultSet = namedPreparedStatement.getGeneratedKeys()) {
                        if (resultSet.next()) {
                            corsOriginId = resultSet.getInt(1);
                        } else {
                            IdentityDatabaseUtil.rollbackTransaction(connection);
                            throw handleServerException(ERROR_CODE_CORS_ADD, SampleTenant.DOMAIN_NAME);
                        }
                    }
                    try (PreparedStatement preparedStatement3 = connection.prepareStatement(INSERT_CORS_ASSOCIATION)) {
                        // Add application associations.
                        preparedStatement3.setInt(1, corsOriginId);
                        preparedStatement3.setInt(2, SampleApp1.ID);
                        preparedStatement3.executeUpdate();
                    }
                }
            }
        } catch (SQLException e) {
            IdentityDatabaseUtil.rollbackTransaction(connection);
            throw handleServerException(ERROR_CODE_CORS_ADD, e, IdentityTenantUtil.getTenantDomain(SampleTenant.ID));
        }
        IdentityDatabaseUtil.commitTransaction(connection);
    } catch (SQLException e) {
        throw handleServerException(ERROR_CODE_CORS_ADD, e, SampleTenant.DOMAIN_NAME);
    }
    List<String> retrievedOrigins = corsManagementService.getApplicationCORSOrigins(SampleApp1.UUID, SampleTenant.DOMAIN_NAME).stream().map(CORSOrigin::getOrigin).collect(Collectors.toList());
    assertEquals(retrievedOrigins, SAMPLE_ORIGIN_LIST_1);
}
Also used : NamedPreparedStatement(org.wso2.carbon.database.utils.jdbc.NamedPreparedStatement) SQLException(java.sql.SQLException) Connection(java.sql.Connection) ResultSet(java.sql.ResultSet) NamedPreparedStatement(org.wso2.carbon.database.utils.jdbc.NamedPreparedStatement) PreparedStatement(java.sql.PreparedStatement) Test(org.testng.annotations.Test) PrepareForTest(org.powermock.core.classloader.annotations.PrepareForTest)

Aggregations

CORSOrigin (org.wso2.carbon.identity.cors.mgt.core.model.CORSOrigin)14 Connection (java.sql.Connection)9 SQLException (java.sql.SQLException)9 NamedPreparedStatement (org.wso2.carbon.database.utils.jdbc.NamedPreparedStatement)9 ResultSet (java.sql.ResultSet)8 ArrayList (java.util.ArrayList)5 PrepareForTest (org.powermock.core.classloader.annotations.PrepareForTest)5 Test (org.testng.annotations.Test)5 ApplicationBasicInfo (org.wso2.carbon.identity.application.common.model.ApplicationBasicInfo)5 PreparedStatement (java.sql.PreparedStatement)4 CORSManagementServiceException (org.wso2.carbon.identity.cors.mgt.core.exception.CORSManagementServiceException)3 IdentityApplicationManagementException (org.wso2.carbon.identity.application.common.IdentityApplicationManagementException)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 MalformedURLException (java.net.MalformedURLException)1 URISyntaxException (java.net.URISyntaxException)1 URL (java.net.URL)1