Tweak method name

Signed-off-by: Tim Hansen <timbonicus@gmail.com>
This commit is contained in:
Tim Hansen
2021-08-03 08:25:40 -06:00
parent 762520d1ba
commit 4a019712b4
4 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -2,4 +2,4 @@
'@backstage/plugin-auth-backend': patch
---
Added `resolveCatalogMemberClaims` utility to query the catalog for additional authentication claims within sign-in resolvers.
Added `resolveCatalogMembership` utility to query the catalog for additional authentication claims within sign-in resolvers.
+3 -3
View File
@@ -134,7 +134,7 @@ export default async function createPlugin({
const ent = await externalSystemClient.getUsernames(email);
// Resolve group membership from the Backstage catalog
const fullEnt = await ctx.catalogIdentityClient.resolveCatalogMemberClaims({
const fullEnt = await ctx.catalogIdentityClient.resolveCatalogMembership({
sub,
ent,
logger: ctx.logger,
@@ -149,8 +149,8 @@ export default async function createPlugin({
...
```
The `resolveCatalogMemberClaims` method will retrieve the `sub` and `ent`
entities from the catalog, if possible, and check for
The `resolveCatalogMembership` method will retrieve the `sub` and `ent` entities
from the catalog, if possible, and check for
[memberOf](../features/software-catalog/well-known-relations.md#memberof-and-hasmember)
relations to add additional entity claims.
@@ -67,7 +67,7 @@ describe('CatalogIdentityClient', () => {
});
});
it('resolveCatalogMemberClaims resolves membership', async () => {
it('resolveCatalogMembership resolves membership', async () => {
const mockUsers: Array<UserEntityV1alpha1> = [
{
apiVersion: 'backstage.io/v1beta1',
@@ -118,7 +118,7 @@ describe('CatalogIdentityClient', () => {
tokenIssuer,
});
const claims = await client.resolveCatalogMemberClaims({
const claims = await client.resolveCatalogMembership({
sub: 'inigom',
ent: ['User:default/imontoya', 'User:reality/mpatinkin'],
});
@@ -86,7 +86,7 @@ export class CatalogIdentityClient {
*
* Returns a superset of the `ent` argument that can be passed directly to `issueToken` as `ent`.
*/
async resolveCatalogMemberClaims({
async resolveCatalogMembership({
sub,
ent,
logger,