Add note about protected headers in JWT

Signed-off-by: Tim Hansen <timbonicush@spotify.com>
This commit is contained in:
Tim Hansen
2023-01-06 13:46:22 -07:00
parent ab43f12359
commit 0a8fefc3f8
+3
View File
@@ -110,6 +110,9 @@ value of the configured key as the secret. It must also have the following paylo
- `sub`: "backstage-server" (only this value supported currently)
- `exp`: one hour from the time it was generated, in epoch seconds
> NOTE: The JWT must encode the `alg` header as a protected header, such as with
> [setProtectedHeader](https://github.com/panva/jose/blob/main/docs/classes/jwt_sign.SignJWT.md#setprotectedheader).
## Granular Access Control
We plan to build out the service-to-service auth to be much more powerful in the