Skip to content

Commit

Permalink
PermissionService and getAuthorization
Browse files Browse the repository at this point in the history
  • Loading branch information
jaceklaskowski committed Nov 9, 2024
1 parent e96147e commit 5a7364c
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions docs/server/PermissionService.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,24 @@ HttpResponse getAuthorization(
String name)
```

`getAuthorization` [finds the ID](#getResourceId) of the given `SecurableType` and `name`.

`getAuthorization` [finds the ID of the current principal](../server-authorization/IdentityUtils.md#findPrincipalId).

`getAuthorization`...FIXME

---

`getAuthorization` is used when `PermissionService` is requested for the following authorizations:

* [Catalog](#getCatalogAuthorization)
* [Function](#getFunctionAuthorization)
* [Metastore](#getMetastoreAuthorization)
* [RegisteredModel](#getRegisteredModelAuthorization)
* [Schema](#getSchemaAuthorization)
* [Table](#getTableAuthorization)
* [Volume](#getVolumeAuthorization)

## Update Authorization { #updateAuthorization }

```java
Expand All @@ -68,3 +84,16 @@ HttpResponse updateAuthorization(
```

`updateAuthorization`...FIXME

## Get Metastore Authorization { #getMetastoreAuthorization }

```java
HttpResponse getMetastoreAuthorization(
String name)
```

`getMetastoreAuthorization` [getAuthorization](#getAuthorization) of the `METASTORE` securable type with the given `name`.

---

`getMetastoreAuthorization` is used to handle `GET /metastore/{name}` requests.

0 comments on commit 5a7364c

Please # to comment.