- スタート アップ ガイド
- コード化されたAppsを使用する
- Studio Web のコード化された Apps
- Studio Web のコード化されたアプリ プロジェクト
- Public coded apps (preview)
- コード化されたアクション Apps
Public coded apps
Deploy a coded app that people outside your organization can use without signing in, through a solution. Public coded apps are in preview.
Public coded apps are in preview and are available only for coded apps that are deployed through Solutions.
概要
A public coded app is a coded app that anyone with its link can use without signing in to UiPath Automation Cloud. A public coded app calls UiPath services as a confidential external application of your organization, and only for the resources it declares.
- Anyone with the link can use the app. Never collect or show sensitive data, such as Social Security numbers or billing information.
- Visitor identity is not available to the app, so it cannot use features that depend on the current user.
前提条件
- An Organization Administrator has created a confidential external application with application scopes for everything the app calls, for example
DataFabric.Data.ReadandDataFabric.Data.Writefor an app that adds Data Fabric records, and has shared its client secret with you. For the steps, refer to Adding an external application. - Permission to deploy solutions in the target folder.
サポートされるリソース
| リソース | What a visitor can do |
|---|---|
| プロセス | Start a job and read its output. |
| Data Fabric エンティティ | Add records and read records. |
| ストレージ バケット | Upload files. |
A public coded app supports only these operations. If your app needs an operation that is not listed, such as updating entity records or reading files from a storage bucket, create a process that performs it and start that process from the app. The process can be of any type, for example an RPA workflow, an API workflow, or a function.
Access modes
The app developer decides how visitors can read each resource the app uses, and sets one of two access modes:
- Session: a visitor can read only the data they added in their own session.
- All: the data in the declared resource is shared with every visitor. This is the default.
A visitor is identified by their browser session. Opening the app in another browser or a private window, or clearing cookies, starts a new session, and a new session cannot read what an earlier session added.
To set the modes, refer to the SDK documentation.
手順
Developing the app
- Build the app with the UiPath TypeScript SDK (
@uipath/uipath-typescript1.8.5 or later), and declare the resources it uses. For details, refer to Public coded apps in the SDK documentation. - Add the confidential external application to the project's
.env.localfile. - Start the dev server with the
@uipath/coded-apps-devplugin (1.0.0 or later) to run the app locally as a public app.
The app opens without a sign-in and follows the same access rules as after you deploy, while the client secret stays on your machine.
If you use an AI coding agent, install the UiPath Coded Apps skill for it: npx skills add UiPath/skills --skill uipath-coded-apps. Public coded apps need the UiPath skills (@uipath/skills) 1.207.0 or later. Until 1.207.0 is released, use the preview: npm install @uipath/skills@preview.
Publishing the solution
Add the app to a solution, and publish the solution from Studio Web, or with the UiPath CLI 1.206.0 or later (npm install -g @uipath/cli). For the CLI steps, refer to uip solution pack and uip solution publish.
Deploying the app from Studio Web
- In Studio Web, open the solution, and then select Deploy.
- Fill in the Version, Deployment name, Location, and Solution folder name.
- Select the dropdown arrow on the Deploy button, and then select Customize.
- In the coded app's settings, set:
- Routing name: the last part of the app's URL. For example,
feedbackopens the app athttps://<orgName>.uipath.host/feedback. - Authentication: select Public. The default, User sign-in, deploys the app as a regular coded app that visitors must sign in to.
- External application: select the confidential external application from the Prerequisites. The list shows confidential external applications only after you set Authentication to Public.
- Client secret: the external application's client secret, from the Organization Administrator who created it.
- Routing name: the last part of the app's URL. For example,
- [ 検証] を選択します。
- [続行] を選択します。
For the full deployment flow, refer to Publishing and deploying solutions in the Studio Web guide.
Deploying the app from the UiPath CLI
Set the following values in the solution's deployment configuration, and then deploy the solution:
routingName: the same value as Routing name in Studio Web.runtimeAuthMode:application, the CLI name for Public authentication.externalClientId: the confidential external application, the same as External application in Studio Web.clientSecret: the external application's client secret.
For the commands, refer to Deploy with a solution in the SDK documentation.
Giving the external application access
The deployment does not give the external application a role. After the first deployment, an administrator assigns one in the folder the deployment created:
- In Orchestrator, go to Tenant > Folders and select the deployment folder.
- Select Assign accounts/group/external app, and search for the external application.
- Select a role that covers the resources the app uses, for example Automation User. For Data Fabric entities, the role needs View and Create on entity records.
- [割り当て] を選択します。
For details, refer to Assigning external apps to a folder.
Verifying the app
Open https://<orgName>.uipath.host/<routingName> in a private browser window. The app and its operations work without requiring a user sign-in.
Maintaining the app
-
Upgrade: publish a new solution version and upgrade the deployment. The client secret and the scope bound to it are kept. To apply a changed
scopefrom the app'suipath.json, enter the client secret again when you upgrade: in Studio Web, in the coded app's Client secret setting under Customize; with the UiPath CLI, by settingclientSecretagain. -
Rotate the client secret:
- In the deployment folder, go to Automations > Apps.
- Open the app's menu, and select Edit app details.
- In External App Secret, enter the new secret.
- [編集] を選択します。
The secret is checked against the external application before it is saved.
ベスト プラクティス
すべきこと
- Give the external application only the scopes and folder roles the app needs.
- Deploy each public app in its own folder, so its role covers only that app's resources.
- Set Session on every resource that holds personal data.
- Treat anything a visitor sends as untrusted, and check it in the process the app starts.
- Use field-level access in Data Fabric to hide the fields the app must not read.
避けるべきこと
- Don't return secrets in a job's output. The visitor's browser receives the output, so keep secrets inside the process the app starts, such as a function or an API workflow, and return only what the visitor may see.
- Don't put keys or credentials in the app. Everything in the app's build output is public.
- Don't rely on the app's screens to hide data. What a visitor can read is decided by the resource's Session or All setting, not by what the app shows.
制限事項
- Public coded apps are available only in Automation Cloud. They are not available in Automation Cloud Dedicated, Automation Cloud Public Sector, or Automation Suite.
- Public coded apps are available only through Solutions. A public coded app can access only the resources bound to it in its solution, so a coded app deployed on its own, outside a solution, cannot be public.
- Data Fabric entities must be folder-scoped. Tenant-level entities are not supported.
- Coded action apps cannot be public.
- The Trusted public apps list does not apply to public coded apps. If your organization restricts access by IP address, visitors outside the allowed ranges cannot use the app.