Merge pull request #28984 from backstage/rugvip/defaults

auth-backend: move getDefaultOwnershipEntityRefs to resolver context
This commit is contained in:
Patrik Oldsberg
2025-02-27 18:43:45 +01:00
committed by GitHub
9 changed files with 66 additions and 19 deletions
+3
View File
@@ -113,6 +113,9 @@ export type AuthResolverContext = {
signInWithCatalogUser(
query: AuthResolverCatalogUserQuery,
): Promise<BackstageSignInResult>;
resolveOwnershipEntityRefs(entity: Entity): Promise<{
ownershipEntityRefs: string[];
}>;
};
// @public
+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[] }>;
};
/**