Merge pull request #22798 from backstage/Rugvip-patch-1

beps/0003: add TODOs for issuing service tokens
This commit is contained in:
Patrik Oldsberg
2024-02-07 15:26:15 +01:00
committed by GitHub
@@ -111,6 +111,8 @@ type BackstageCredentials =
export interface AuthService {
authenticate(token: string): Promise<BackstageCredentials>;
// TODO: should the caller provide the target plugin ID?
// TODO: how can we make it very difficult to forget to forward credentials
issueToken(credentials: BackstageCredentials): Promise<{ token: string }>;
}
```