public class AppPortalUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
createApplication(String appName,
String appOwner,
String appDescription,
String consumerKey,
String consumerSecret,
String tenantDomain)
Create portal SaaS application.
|
static void |
createOAuth2Application(String applicationName,
String portalPath,
String consumerKey,
String consumerSecret,
String appOwner,
int tenantId,
String tenantDomain,
String bindingType,
List<String> grantTypes)
Create OAuth2 application.
|
static org.wso2.carbon.identity.application.common.model.InboundAuthenticationRequestConfig |
getOAuthInboundAuthenticationRequestConfig(org.wso2.carbon.identity.application.common.model.ServiceProvider application)
Get OAuth InboundAuthenticationRequestConfig of the application.
|
static void |
initiatePortals(String tenantDomain,
int tenantId)
Initiate portal applications.
|
public static void createOAuth2Application(String applicationName, String portalPath, String consumerKey, String consumerSecret, String appOwner, int tenantId, String tenantDomain, String bindingType, List<String> grantTypes) throws org.wso2.carbon.identity.oauth.IdentityOAuthAdminException
applicationName - application name.portalPath - portal path.consumerKey - consumer key.consumerSecret - consumer secret.appOwner - application owner.tenantId - tenant id.tenantDomain - tenant domain.grantTypes - grant types.org.wso2.carbon.identity.oauth.IdentityOAuthAdminException - in case of failure.public static void createApplication(String appName, String appOwner, String appDescription, String consumerKey, String consumerSecret, String tenantDomain) throws org.wso2.carbon.identity.application.common.IdentityApplicationManagementException
appName - Application name.appOwner - Application owner.appDescription - Application description.consumerKey - Consumer key.consumerSecret - Consumer secret.org.wso2.carbon.identity.application.common.IdentityApplicationManagementException - IdentityApplicationManagementException.public static void initiatePortals(String tenantDomain, int tenantId) throws org.wso2.carbon.identity.application.common.IdentityApplicationManagementException, org.wso2.carbon.identity.oauth.IdentityOAuthAdminException, org.wso2.carbon.registry.core.exceptions.RegistryException, org.wso2.carbon.user.core.UserStoreException
tenantDomain - tenant domain.tenantId - tenant id.org.wso2.carbon.identity.application.common.IdentityApplicationManagementException - in case of failure during application creation.org.wso2.carbon.identity.oauth.IdentityOAuthAdminException - in case of failure during OAuth2 application creation.org.wso2.carbon.registry.core.exceptions.RegistryException - in case of failure while getting the user realm.org.wso2.carbon.user.core.UserStoreExceptionpublic static org.wso2.carbon.identity.application.common.model.InboundAuthenticationRequestConfig getOAuthInboundAuthenticationRequestConfig(org.wso2.carbon.identity.application.common.model.ServiceProvider application)
application - application.Copyright © 2021 WSO2. All rights reserved.