Copy updates

Signed-off-by: Joe Porpeglia <josephp@spotify.com>
This commit is contained in:
Joe Porpeglia
2022-04-18 12:45:00 -04:00
committed by Joon Park
parent 6bc4d75d33
commit b5b349b09d
4 changed files with 4 additions and 8 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

+2 -6
View File
@@ -28,13 +28,9 @@ The source code is available here:
backstage-master/contrib/plugins/todo-list-common
```
Your application structure should look something like this:
The `plugins` directory of your project should now include `todo-list`, `todo-list-backend`, and `todo-list-common`.
// TODO: UPDATE THIS IMAGE
![backstage application files structure](../../assets/permission/permission-tutorial-backstage-application-initial-structure.png)
2. Add the frontend and backend plugins as dependencies of your Backstage app and backend respectively:
2. Add these packages as dependencies for your Backstage app:
```
$ yarn workspace backend add @internal/plugin-todo-list-backend@^1.0.0 @internal/plugin-todo-list-common@^1.0.0
@@ -26,7 +26,7 @@ Let's navigate to the file `plugins/todo-list-common/src/permissions.ts` and add
});
```
For this tutorial, we've automatically exported all permissions from this file (see `plugins/todo-list-common/src/index.ts`). For the actual plugins that you author, we recommend exporting all permissions from your plugin, so that Backstage integrators can import them when writing policies.
For this tutorial, we've automatically exported all permissions from this file (see `plugins/todo-list-common/src/index.ts`). For the actual plugins that you author, you must export any permission authorized by the plugin so Backstage integrators can import them when writing policies.
## Authorizing using the new permission
@@ -154,7 +154,7 @@ Now, let's create the new endpoint by editing `plugins/todo-list-backend/src/ser
## Test the authorized update endpoint
Now let's go back to the permission policy's handle function (which would normally be written by your integrators) and try to authorize our new permission.
Now let's go back to the permission policy's handle function and try to authorize our new permission.
Let's edit `packages/backend/src/plugins/permission.ts`: