@backstage/plugin-auth-backend-module-google-provider 0.1.16-next.1 → 0.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # @backstage/plugin-auth-backend-module-google-provider
2
2
 
3
+ ## 0.1.16
4
+
5
+ ### Patch Changes
6
+
7
+ - 78a0b08: Internal refactor to handle `BackendFeature` contract change.
8
+ - 8efc6cf: Added support for the new shared `additionalScopes` configuration. In addition, the `openid`, `userinfo.email`, and `userinfo.profile` scopes have been set to required and will always be present.
9
+ - d44a20a: Added additional plugin metadata to `package.json`.
10
+ - Updated dependencies
11
+ - @backstage/backend-plugin-api@0.6.19
12
+ - @backstage/plugin-auth-node@0.4.14
13
+
14
+ ## 0.1.16-next.2
15
+
16
+ ### Patch Changes
17
+
18
+ - 8efc6cf: Added support for the new shared `additionalScopes` configuration. In addition, the `openid`, `userinfo.email`, and `userinfo.profile` scopes have been set to required and will always be present.
19
+ - d44a20a: Added additional plugin metadata to `package.json`.
20
+ - Updated dependencies
21
+ - @backstage/backend-plugin-api@0.6.19-next.3
22
+ - @backstage/plugin-auth-node@0.4.14-next.3
23
+
3
24
  ## 0.1.16-next.1
4
25
 
5
26
  ### Patch Changes
package/config.d.ts CHANGED
@@ -26,6 +26,7 @@ export interface Config {
26
26
  */
27
27
  clientSecret: string;
28
28
  callbackUrl?: string;
29
+ additionalScopes?: string | string[];
29
30
  };
30
31
  };
31
32
  };
package/dist/index.cjs.js CHANGED
@@ -9,6 +9,13 @@ var backendPluginApi = require('@backstage/backend-plugin-api');
9
9
 
10
10
  const googleAuthenticator = pluginAuthNode.createOAuthAuthenticator({
11
11
  defaultProfileTransform: pluginAuthNode.PassportOAuthAuthenticatorHelper.defaultProfileTransform,
12
+ scopes: {
13
+ required: [
14
+ "openid",
15
+ `https://www.googleapis.com/auth/userinfo.email`,
16
+ `https://www.googleapis.com/auth/userinfo.profile`
17
+ ]
18
+ },
12
19
  initialize({ callbackUrl, config }) {
13
20
  const clientId = config.getString("clientId");
14
21
  const clientSecret = config.getString("clientSecret");
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs.js","sources":["../src/authenticator.ts","../src/resolvers.ts","../src/module.ts"],"sourcesContent":["/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n PassportOAuthAuthenticatorHelper,\n PassportOAuthDoneCallback,\n PassportProfile,\n createOAuthAuthenticator,\n} from '@backstage/plugin-auth-node';\nimport { OAuth2Client } from 'google-auth-library';\nimport { Strategy as GoogleStrategy } from 'passport-google-oauth20';\n\n/** @public */\nexport const googleAuthenticator = createOAuthAuthenticator({\n defaultProfileTransform:\n PassportOAuthAuthenticatorHelper.defaultProfileTransform,\n initialize({ callbackUrl, config }) {\n const clientId = config.getString('clientId');\n const clientSecret = config.getString('clientSecret');\n\n return PassportOAuthAuthenticatorHelper.from(\n new GoogleStrategy(\n {\n clientID: clientId,\n clientSecret: clientSecret,\n callbackURL: callbackUrl,\n passReqToCallback: false,\n },\n (\n accessToken: string,\n refreshToken: string,\n params: any,\n fullProfile: PassportProfile,\n done: PassportOAuthDoneCallback,\n ) => {\n done(\n undefined,\n {\n fullProfile,\n params,\n accessToken,\n },\n {\n refreshToken,\n },\n );\n },\n ),\n );\n },\n\n async start(input, helper) {\n return helper.start(input, {\n accessType: 'offline',\n prompt: 'consent',\n });\n },\n\n async authenticate(input, helper) {\n return helper.authenticate(input);\n },\n\n async refresh(input, helper) {\n return helper.refresh(input);\n },\n\n async logout(input) {\n if (input.refreshToken) {\n const oauthClient = new OAuth2Client();\n await oauthClient.revokeToken(input.refreshToken);\n }\n },\n});\n","/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n createSignInResolverFactory,\n OAuthAuthenticatorResult,\n PassportProfile,\n SignInInfo,\n} from '@backstage/plugin-auth-node';\n\n/**\n * Available sign-in resolvers for the Google auth provider.\n *\n * @public\n */\nexport namespace googleSignInResolvers {\n /**\n * Looks up the user by matching their email to the `google.com/email` annotation.\n */\n export const emailMatchingUserEntityAnnotation = createSignInResolverFactory({\n create() {\n return async (\n info: SignInInfo<OAuthAuthenticatorResult<PassportProfile>>,\n ctx,\n ) => {\n const { profile } = info;\n\n if (!profile.email) {\n throw new Error('Google profile contained no email');\n }\n\n return ctx.signInWithCatalogUser({\n annotations: {\n 'google.com/email': profile.email,\n },\n });\n };\n },\n });\n}\n","/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createBackendModule } from '@backstage/backend-plugin-api';\nimport {\n authProvidersExtensionPoint,\n commonSignInResolvers,\n createOAuthProviderFactory,\n} from '@backstage/plugin-auth-node';\nimport { googleAuthenticator } from './authenticator';\nimport { googleSignInResolvers } from './resolvers';\n\n/** @public */\nexport const authModuleGoogleProvider = createBackendModule({\n pluginId: 'auth',\n moduleId: 'google-provider',\n register(reg) {\n reg.registerInit({\n deps: {\n providers: authProvidersExtensionPoint,\n },\n async init({ providers }) {\n providers.registerProvider({\n providerId: 'google',\n factory: createOAuthProviderFactory({\n authenticator: googleAuthenticator,\n signInResolverFactories: {\n ...googleSignInResolvers,\n ...commonSignInResolvers,\n },\n }),\n });\n },\n });\n },\n});\n"],"names":["createOAuthAuthenticator","PassportOAuthAuthenticatorHelper","GoogleStrategy","OAuth2Client","googleSignInResolvers","createSignInResolverFactory","createBackendModule","authProvidersExtensionPoint","createOAuthProviderFactory","commonSignInResolvers"],"mappings":";;;;;;;;;AA0BO,MAAM,sBAAsBA,uCAAyB,CAAA;AAAA,EAC1D,yBACEC,+CAAiC,CAAA,uBAAA;AAAA,EACnC,UAAW,CAAA,EAAE,WAAa,EAAA,MAAA,EAAU,EAAA;AAClC,IAAM,MAAA,QAAA,GAAW,MAAO,CAAA,SAAA,CAAU,UAAU,CAAA,CAAA;AAC5C,IAAM,MAAA,YAAA,GAAe,MAAO,CAAA,SAAA,CAAU,cAAc,CAAA,CAAA;AAEpD,IAAA,OAAOA,+CAAiC,CAAA,IAAA;AAAA,MACtC,IAAIC,8BAAA;AAAA,QACF;AAAA,UACE,QAAU,EAAA,QAAA;AAAA,UACV,YAAA;AAAA,UACA,WAAa,EAAA,WAAA;AAAA,UACb,iBAAmB,EAAA,KAAA;AAAA,SACrB;AAAA,QACA,CACE,WAAA,EACA,YACA,EAAA,MAAA,EACA,aACA,IACG,KAAA;AACH,UAAA,IAAA;AAAA,YACE,KAAA,CAAA;AAAA,YACA;AAAA,cACE,WAAA;AAAA,cACA,MAAA;AAAA,cACA,WAAA;AAAA,aACF;AAAA,YACA;AAAA,cACE,YAAA;AAAA,aACF;AAAA,WACF,CAAA;AAAA,SACF;AAAA,OACF;AAAA,KACF,CAAA;AAAA,GACF;AAAA,EAEA,MAAM,KAAM,CAAA,K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AAM,2BAA2BE,oCAAoB,CAAA;AAAA,EAC1D,QAAU,EAAA,MAAA;AAAA,EACV,QAAU,EAAA,iBAAA;AAAA,EACV,SAAS,GAAK,EAAA;AACZ,IAAA,GAAA,CAAI,YAAa,CAAA;AAAA,MACf,IAAM,EAAA;AAAA,QACJ,SAAW,EAAAC,0CAAA;AAAA,OACb;AAAA,MACA,MAAM,IAAA,CAAK,EAAE,SAAA,EAAa,EAAA;AACxB,QAAA,SAAA,CAAU,gBAAiB,CAAA;AAAA,UACzB,UAAY,EAAA,QAAA;AAAA,UACZ,SAASC,yCAA2B,CAAA;AAAA,YAClC,aAAe,EAAA,mBAAA;AAAA,YACf,uBAAyB,EAAA;AAAA,cACvB,GAAGJ,6BAAA;AAAA,cACH,GAAGK,oCAAA;AAAA,aACL;AAAA,WACD,CAAA;AAAA,SACF,CAAA,CAAA;AAAA,OACH;AAAA,KACD,CAAA,CAAA;AAAA,GACH;AACF,CAAC;;;;;"}
1
+ {"version":3,"file":"index.cjs.js","sources":["../src/authenticator.ts","../src/resolvers.ts","../src/module.ts"],"sourcesContent":["/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n PassportOAuthAuthenticatorHelper,\n PassportOAuthDoneCallback,\n PassportProfile,\n createOAuthAuthenticator,\n} from '@backstage/plugin-auth-node';\nimport { OAuth2Client } from 'google-auth-library';\nimport { Strategy as GoogleStrategy } from 'passport-google-oauth20';\n\n/** @public */\nexport const googleAuthenticator = createOAuthAuthenticator({\n defaultProfileTransform:\n PassportOAuthAuthenticatorHelper.defaultProfileTransform,\n scopes: {\n required: [\n 'openid',\n `https://www.googleapis.com/auth/userinfo.email`,\n `https://www.googleapis.com/auth/userinfo.profile`,\n ],\n },\n initialize({ callbackUrl, config }) {\n const clientId = config.getString('clientId');\n const clientSecret = config.getString('clientSecret');\n\n return PassportOAuthAuthenticatorHelper.from(\n new GoogleStrategy(\n {\n clientID: clientId,\n clientSecret: clientSecret,\n callbackURL: callbackUrl,\n passReqToCallback: false,\n },\n (\n accessToken: string,\n refreshToken: string,\n params: any,\n fullProfile: PassportProfile,\n done: PassportOAuthDoneCallback,\n ) => {\n done(\n undefined,\n {\n fullProfile,\n params,\n accessToken,\n },\n {\n refreshToken,\n },\n );\n },\n ),\n );\n },\n\n async start(input, helper) {\n return helper.start(input, {\n accessType: 'offline',\n prompt: 'consent',\n });\n },\n\n async authenticate(input, helper) {\n return helper.authenticate(input);\n },\n\n async refresh(input, helper) {\n return helper.refresh(input);\n },\n\n async logout(input) {\n if (input.refreshToken) {\n const oauthClient = new OAuth2Client();\n await oauthClient.revokeToken(input.refreshToken);\n }\n },\n});\n","/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n createSignInResolverFactory,\n OAuthAuthenticatorResult,\n PassportProfile,\n SignInInfo,\n} from '@backstage/plugin-auth-node';\n\n/**\n * Available sign-in resolvers for the Google auth provider.\n *\n * @public\n */\nexport namespace googleSignInResolvers {\n /**\n * Looks up the user by matching their email to the `google.com/email` annotation.\n */\n export const emailMatchingUserEntityAnnotation = createSignInResolverFactory({\n create() {\n return async (\n info: SignInInfo<OAuthAuthenticatorResult<PassportProfile>>,\n ctx,\n ) => {\n const { profile } = info;\n\n if (!profile.email) {\n throw new Error('Google profile contained no email');\n }\n\n return ctx.signInWithCatalogUser({\n annotations: {\n 'google.com/email': profile.email,\n },\n });\n };\n },\n });\n}\n","/*\n * Copyright 2023 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { createBackendModule } from '@backstage/backend-plugin-api';\nimport {\n authProvidersExtensionPoint,\n commonSignInResolvers,\n createOAuthProviderFactory,\n} from '@backstage/plugin-auth-node';\nimport { googleAuthenticator } from './authenticator';\nimport { googleSignInResolvers } from './resolvers';\n\n/** @public */\nexport const authModuleGoogleProvider = createBackendModule({\n pluginId: 'auth',\n moduleId: 'google-provider',\n register(reg) {\n reg.registerInit({\n deps: {\n providers: authProvidersExtensionPoint,\n },\n async init({ providers }) {\n providers.registerProvider({\n providerId: 'google',\n factory: createOAuthProviderFactory({\n authenticator: googleAuthenticator,\n signInResolverFactories: {\n ...googleSignInResolvers,\n ...commonSignInResolvers,\n },\n }),\n });\n },\n });\n },\n});\n"],"names":["createOAuthAuthenticator","PassportOAuthAuthenticatorHelper","GoogleStrategy","OAuth2Client","googleSignInResolvers","createSignInResolverFactory","createBackendModule","authProvidersExtensionPoint","createOAuthProviderFactory","commonSignInResolvers"],"mappings":";;;;;;;;;AA0BO,MAAM,sBAAsBA,uCAAyB,CAAA;AAAA,EAC1D,yBACEC,+CAAiC,CAAA,uBAAA;AAAA,EACnC,MAAQ,EAAA;AAAA,IACN,QAAU,EAAA;AAAA,MACR,QAAA;AAAA,MACA,CAAA,8CAAA,CAAA;AAAA,MACA,CAAA,gDAAA,CAAA;AAAA,K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CAAA;AAAA,SACF,CAAA,CAAA;AAAA,OACH;AAAA,KACD,CAAA,CAAA;AAAA,GACH;AACF,CAAC;;;;;"}
package/dist/index.d.ts CHANGED
@@ -6,7 +6,7 @@ import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api';
6
6
  declare const googleAuthenticator: _backstage_plugin_auth_node.OAuthAuthenticator<PassportOAuthAuthenticatorHelper, PassportProfile>;
7
7
 
8
8
  /** @public */
9
- declare const authModuleGoogleProvider: () => _backstage_backend_plugin_api.BackendFeature;
9
+ declare const authModuleGoogleProvider: _backstage_backend_plugin_api.BackendFeatureCompat;
10
10
 
11
11
  /**
12
12
  * Available sign-in resolvers for the Google auth provider.
package/package.json CHANGED
@@ -1,52 +1,54 @@
1
1
  {
2
2
  "name": "@backstage/plugin-auth-backend-module-google-provider",
3
+ "version": "0.1.16",
3
4
  "description": "A Google auth provider module for the Backstage auth backend",
4
- "version": "0.1.16-next.1",
5
- "main": "dist/index.cjs.js",
6
- "types": "dist/index.d.ts",
7
- "license": "Apache-2.0",
5
+ "backstage": {
6
+ "role": "backend-plugin-module",
7
+ "pluginId": "auth",
8
+ "pluginPackage": "@backstage/plugin-auth-backend"
9
+ },
8
10
  "publishConfig": {
9
11
  "access": "public",
10
12
  "main": "dist/index.cjs.js",
11
13
  "types": "dist/index.d.ts"
12
14
  },
13
- "backstage": {
14
- "role": "backend-plugin-module"
15
- },
15
+ "keywords": [
16
+ "backstage"
17
+ ],
16
18
  "homepage": "https://backstage.io",
17
19
  "repository": {
18
20
  "type": "git",
19
21
  "url": "https://github.com/backstage/backstage",
20
22
  "directory": "plugins/auth-backend-module-google-provider"
21
23
  },
22
- "keywords": [
23
- "backstage"
24
+ "license": "Apache-2.0",
25
+ "main": "dist/index.cjs.js",
26
+ "types": "dist/index.d.ts",
27
+ "files": [
28
+ "dist",
29
+ "config.d.ts"
24
30
  ],
25
31
  "scripts": {
26
- "start": "backstage-cli package start",
27
32
  "build": "backstage-cli package build",
33
+ "clean": "backstage-cli package clean",
28
34
  "lint": "backstage-cli package lint",
29
- "test": "backstage-cli package test",
30
35
  "prepack": "backstage-cli package prepack",
31
36
  "postpack": "backstage-cli package postpack",
32
- "clean": "backstage-cli package clean"
37
+ "start": "backstage-cli package start",
38
+ "test": "backstage-cli package test"
33
39
  },
34
40
  "dependencies": {
35
- "@backstage/backend-plugin-api": "^0.6.19-next.2",
36
- "@backstage/plugin-auth-node": "^0.4.14-next.2",
41
+ "@backstage/backend-plugin-api": "^0.6.19",
42
+ "@backstage/plugin-auth-node": "^0.4.14",
37
43
  "google-auth-library": "^9.0.0",
38
44
  "passport-google-oauth20": "^2.0.0"
39
45
  },
40
46
  "devDependencies": {
41
- "@backstage/backend-test-utils": "^0.4.0-next.2",
42
- "@backstage/cli": "^0.26.7-next.2",
43
- "@backstage/plugin-auth-backend": "^0.22.6-next.2",
47
+ "@backstage/backend-test-utils": "^0.4.0",
48
+ "@backstage/cli": "^0.26.7",
49
+ "@backstage/plugin-auth-backend": "^0.22.6",
44
50
  "@types/passport-google-oauth20": "^2.0.3",
45
51
  "supertest": "^6.1.3"
46
52
  },
47
- "files": [
48
- "dist",
49
- "config.d.ts"
50
- ],
51
53
  "configSchema": "config.d.ts"
52
54
  }