auth-backend: move getDefaultOwnershipEntityRefs to resolver context

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2025-02-27 13:38:19 +01:00
parent bc5048adbf
commit b6702ea5a2
9 changed files with 66 additions and 19 deletions
+8
View File
@@ -161,6 +161,14 @@ export type AuthResolverContext = {
signInWithCatalogUser(
query: AuthResolverCatalogUserQuery,
): Promise<BackstageSignInResult>;
/**
* Resolves the ownership entity references for the provided entity.
* This will use the `AuthOwnershipResolver` if one is installed, and otherwise fall back to the default resolution logic.
*/
resolveOwnershipEntityRefs(
entity: Entity,
): Promise<{ ownershipEntityRefs: string[] }>;
};
/**