UiPath Documentation
apps
latest
false
Guia do usuário de Apps
  • Introdução
    • Sobre Apps codificados
    • Licenciamento
  • Trabalhando com Coded Apps
  • Apps codificados no Studio Web
    • Projetos de apps codificados no Studio Web
    • Public coded apps (preview)
  • Apps de ação codificados
Importante :
Para obter documentação sobre projetos de aplicativos no Studio Web, consulte o capítulo Projetos de aplicativos na documentação do Studio Web: https://docs.uipath.com/pt-BR/studio-web/automation-cloud/latest/user-guide/apps-in-studio-web. A tradução automática foi aplicada parcialmente neste conteúdo. A localização de um conteúdo recém-publicado pode levar de 1 a 2 semanas para ficar disponível.

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.

Importante:

Public coded apps are in preview and are available only for coded apps that are deployed through Solutions.

Visão geral​

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.

AVISO:
  • 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.

Pré-requisitos​

  • An Organization Administrator has created a confidential external application with application scopes for everything the app calls, for example DataFabric.Data.Read and DataFabric.Data.Write for 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.

Recursos compatíveis​

RecursoWhat a visitor can do
ProcessosStart a job and read its output.
Entidades do Data FabricAdd records and read records.
Armazenar bucketsUpload 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.
Observação:

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.

Etapas​

Developing the app​

  1. Build the app with the UiPath TypeScript SDK (@uipath/uipath-typescript 1.8.5 or later), and declare the resources it uses. For details, refer to Public coded apps in the SDK documentation.
  2. Add the confidential external application to the project's .env.local file.
  3. Start the dev server with the @uipath/coded-apps-dev plugin (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.

Dica:

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​

  1. In Studio Web, open the solution, and then select Deploy.
  2. Fill in the Version, Deployment name, Location, and Solution folder name.
  3. Select the dropdown arrow on the Deploy button, and then select Customize.
  4. In the coded app's settings, set:
    • Routing name: the last part of the app's URL. For example, feedback opens the app at https://<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.
  5. Selecione Validar.
  6. Selecione Continuar.

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:

  1. In Orchestrator, go to Tenant > Folders and select the deployment folder.
  2. Select Assign accounts/group/external app, and search for the external application.
  3. 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.
  4. Selecione Atribuir.

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 scope from the app's uipath.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 setting clientSecret again.

  • Rotate the client secret:

    1. In the deployment folder, go to Automations > Apps.
    2. Open the app's menu, and select Edit app details.
    3. In External App Secret, enter the new secret.
    4. Selecione Editar.

    The secret is checked against the external application before it is saved.

Melhores práticas​

O que fazer​

  • 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.

O que não fazer​

  • 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.

Limitações​

  • 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.

Esta página foi útil?

Conectar

Precisa de ajuda? Suporte(opens in new window)

Quer aprender? Academia UiPath(opens in new window)

Tem perguntas? Fórum do UiPath(opens in new window)

Fique por dentro das novidades