The required resourcePath property defines the workflow action handler’s location. Point to any implementation of a workflow action handler that’s accessible as an external application (for example, a Java Spring Boot application). This value is combined with the homePageURL value of the OAuth2 application profile to form the complete URL.
Workflow action client extensions require OAuth2 application profiles to secure requests triggered by workflow actions in Liferay. The example above defines an additional OAuth user agent client extension for this profile, and the oAuth2ApplicationExternalReferenceCode property references that client extension’s key value.
These properties are specific to workflow action client extensions:
Name
Data Type
Description
resourcePath
String (partial URL)
(Required) The path to the workflow action handler. This value is combined with the OAauth2 application profile’s homePageURL value for a complete URL.
oAuth2ApplicationExternalReferenceCode
String
(Required) The external reference code for an OAuth2 application profile, needed for securing requests.
Service access policies define a whitelist for methods exposed via web service invocation. You can use wildcards to define whitelisted classes and methods. Note that service access policies respect the permissions system. If a policy grants a user access to a remote service, that user must still have the appropriate permissions to invoke that service.
To view and manage service access policies, open the
Global Menu () and navigate to Control Panel → Service Access Policy.
There are 18 service access policies enabled by default. Eleven of these are system-related:
Service Access Policy
Description
Enabled by Default
ASSET_CATEGORY_DEFAULT
Makes it possible to search for categories.
✔
ASSET_ENTRY_DEFAULT
Allows the view counter for assets to be updated when an asset is retrieved.
✔
ASSET_TAG_DEFAULT
Makes it possible to search for tags.
✔
AUTHORIZED_OAUTH2_SAP
Allows all REST requests authorized by OAuth 2.
✔
CALENDAR_DEFAULT
Makes it possible to search public events in the calendar.
✔
CAPTCHA_DEFAULT
Makes it possible to access the headless captcha API by unauthenticated requests.
✔
COMMERCE_DEFAULT
Makes it possible to access all the Commerce Service APIs. calendar.
✔
OBJECT_DEFAULT
Makes it possible to access all the Object entry APIs.
✔
SEARCH_SUGGESTIONS
Allows access to country/region services so users can switch languages on the fly. Applies to every request, including unauthenticated requests.
✔
SYSTEM_DEFAULT
Allows access to country/region services so users can switch languages on the fly. Applies to every request, including unauthenticated requests.
✔
SYSTEM_USER_PASSWORD
Allows any method to be invoked. Of course, since API functions include permission checks, this call works only if the user has the required permission. It applies to requests for which AuthVerifierResult.isPasswordBasedAuthentication is true: i.e., whenever user authentication took place using a password. If you want to completely disallow certain API functions from being invoked, you can change the SYSTEM_USER_PASSWORD policy to something more restrictive than *.
✔
Note
SYSTEM_DEFAULT, and other policies with Default configured to Yes are applied to all incoming requests, including unauthenticated requests.
The other seven policies are for OAuth and JSON web services:
The Everything policies grant access to all the JSON web services for various reasons. Everything is everything: all JSON web services (matches *). The others match method signatures appropriate to their description. For example, OAUTH2_everything.read matches all methods starting with fetch, get, has, is, or search.
✔
The default configuration makes available corresponding scopes that provide access to all web services shipped with the system. The scopes must be assigned to OAuth 2 applications before they become usable. Administrators should review the ones you want to use and disable the others.
Service access policy titles can be localized; service access policy names cannot be localized.
Allowed service signatures must be entered one per line. Wildcards (*) are allowed for both class names and method names. The # symbol must be used to separate a class name from a method name.
For example, com.liferay.portal.kernel.service.UserService allows any method from the UserService class to be invoked. com.liferay.document.library.kernel.service.DLAppService#get* allows any method from the DLAppService that starts with get to be invoked.
The following example allows any method from the UserService class to be invoked and any method from the DLAppService whose name starts with get to be invoked:
You can override or adjust default service access policies to meet the needs of your deployed applications or specific modules:
Deployed Liferay applications can declare their own default policies. These can then be changed or disabled by administrators. Plugins can always verify the policy exists even if you redefine or update it.
By default, Liferay’s tunneling servlet uses the SYSTEM_USER_PASSWORD service access policy. You can, however, create your own policy for the tunneling servlet and use the property service.access.policy.name for the TunnelingServletAuthVerifier to specify that your policy should be used instead.
<p>
This website uses cookies and similar tools, some of which are provided by third parties (together “tools”). These tools enable us and the third parties to access and record certain user-related and activity data and to track your interactions with this website. These tools and the informationcollected are used to operate and secure this website, enhance performance, enable certain website features and functionality, analyze and improve website performance, and personalize user experience.
</p>
<p>
If you click <b>“Accept All”</b>, you allow the deployment of all these tools and collection of the information by us and the third parties for all these purposes.
</p>
<p>
If you click <b>“Decline All”</b> your IP address and other information may still be collected but only by tools (including third party tools) that are necessary to operate, secure and enable default website features and functionalities. Review and change your preferences by clicking the <b>“Configurations”</b> at any time.
</p>
Consulte la Política de privacidad