Merge pull request #28984 from backstage/rugvip/defaults
auth-backend: move getDefaultOwnershipEntityRefs to resolver context
This commit is contained in:
@@ -113,6 +113,9 @@ export type AuthResolverContext = {
|
||||
signInWithCatalogUser(
|
||||
query: AuthResolverCatalogUserQuery,
|
||||
): Promise<BackstageSignInResult>;
|
||||
resolveOwnershipEntityRefs(entity: Entity): Promise<{
|
||||
ownershipEntityRefs: string[];
|
||||
}>;
|
||||
};
|
||||
|
||||
// @public
|
||||
|
||||
@@ -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[] }>;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user