backend-app-api: move listPublicServiceKeys to authService

Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
This commit is contained in:
Vincenzo Scamporlino
2024-04-03 11:17:22 +02:00
parent ed99c79cf1
commit 8c0401a1d5
5 changed files with 19 additions and 7 deletions
@@ -14,6 +14,8 @@
* limitations under the License.
*/
import { JsonObject } from '@backstage/types';
/**
* @public
*/
@@ -91,4 +93,8 @@ export interface AuthService {
getLimitedUserToken(
credentials: BackstageCredentials<BackstageUserPrincipal>,
): Promise<{ token: string; expiresAt: Date }>;
listPublicServiceKeys(): Promise<{
keys: JsonObject[];
}>;
}