Search in sources :

Example 1 with INBOUND_NOT_CONFIGURED

use of org.wso2.carbon.identity.api.server.application.management.common.ApplicationManagementConstants.ErrorMessage.INBOUND_NOT_CONFIGURED in project identity-api-server by wso2.

the class ServerApplicationManagementService method getInboundAuthRequestConfig.

private InboundAuthenticationRequestConfig getInboundAuthRequestConfig(String applicationId, String inboundType) {
    ServiceProvider application = getServiceProvider(applicationId);
    // Extract the inbound authentication request config for the given inbound type.
    InboundAuthenticationRequestConfig inboundAuthenticationRequestConfig = getInboundAuthenticationRequestConfig(application, inboundType);
    if (inboundAuthenticationRequestConfig == null) {
        // This means the inbound is not configured for the particular app.
        throw buildClientError(INBOUND_NOT_CONFIGURED, inboundType, applicationId);
    }
    return inboundAuthenticationRequestConfig;
}
Also used : 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)

Aggregations

SAML2ServiceProvider (org.wso2.carbon.identity.api.server.application.management.v1.SAML2ServiceProvider)1 ApiModelToServiceProvider (org.wso2.carbon.identity.api.server.application.management.v1.core.functions.application.ApiModelToServiceProvider)1 UpdateServiceProvider (org.wso2.carbon.identity.api.server.application.management.v1.core.functions.application.UpdateServiceProvider)1 InboundFunctions.getInboundAuthenticationRequestConfig (org.wso2.carbon.identity.api.server.application.management.v1.core.functions.application.inbound.InboundFunctions.getInboundAuthenticationRequestConfig)1 InboundAuthenticationRequestConfig (org.wso2.carbon.identity.application.common.model.InboundAuthenticationRequestConfig)1 ServiceProvider (org.wso2.carbon.identity.application.common.model.ServiceProvider)1