# collab: Remove database access in \`Authorization\` header verification \(\#56558\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/bb18442e2bfd3fd76f9402141fc71f3c31d53c33)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: bb18442e2bfd3fd76f9402141fc71f3c31d53c33

Requested commit: bb18442e2bfd3fd76f9402141fc71f3c31d53c33

Commit: bb18442e2bfd3fd76f9402141fc71f3c31d53c33

Tree: 8fd29a82ccd2f453f4c4c035146cf26b2c8c10e6

Author: Marshall Bowers

Committer: GitHub

## Message

```
collab: Remove database access in `Authorization` header verification (#56558)

This PR removes the database access in the `Authorization` header
verification in Collab.

We already have the user returned from the call to Cloud, but were just
fetching the user from the database to get some additional fields.

We're now returning the additional fields we need from Cloud, so we can
just convert the user from the internal API response into a `User`
entity.

Closes CLO-762.

Release Notes:

- N/A
```

## Parents

- [074585934c9a9ef575201324c2ffae242d82822c](https://git.cafe/gitcafe/zed/commit/074585934c9a9ef575201324c2ffae242d82822c?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/bb18442e2bfd3fd76f9402141fc71f3c31d53c33?format=markdown)
