From e96e0a651197a34f19e7e61abe9bc4742ede0391 Mon Sep 17 00:00:00 2001 From: Jan Van Bruggen Date: Wed, 18 Jan 2023 23:23:00 -0700 Subject: [PATCH] Fix a file path and a syntax error This file path seems outdated, or a typo. This syntax error is certainly a typo. Signed-off-by: Jan Van Bruggen --- docs/auth/google/gcp-iap-auth.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/auth/google/gcp-iap-auth.md b/docs/auth/google/gcp-iap-auth.md index d6303ced6f..f9a78bbc71 100644 --- a/docs/auth/google/gcp-iap-auth.md +++ b/docs/auth/google/gcp-iap-auth.md @@ -41,7 +41,7 @@ besides the config section above, it also needs to be given one or more callbacks in actual code as well as described below. Add a `providerFactories` entry to the router in -`packages/backend/plugin/auth.ts`. +`packages/backend/src/plugins/auth.ts`. ```ts import { providers } from '@backstage/plugin-auth-backend'; @@ -75,7 +75,10 @@ export default async function createPlugin( // GSuite or similar, based on the IAP token sub/email claims const id = iapToken.email.split('@')[0]; const sub = stringifyEntityRef({ kind: 'User', name: id }); - const ent = [sub, stringifyEntityRef({ kind: 'Group', name: 'team-name' }); + const ent = [ + sub, + stringifyEntityRef({ kind: 'Group', name: 'team-name' }), + ]; return ctx.issueToken({ claims: { sub, ent } }); }, },