@backstage/plugin-auth-backend-module-guest-provider 0.1.0-next.0 → 0.1.0-next.2

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/config.d.ts +42 -0
  3. package/package.json +22 -20
package/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # @backstage/plugin-auth-backend-module-guest-provider
2
2
 
3
+ ## 0.1.0-next.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @backstage/backend-common@0.21.4-next.2
9
+ - @backstage/plugin-auth-node@0.4.9-next.2
10
+ - @backstage/backend-plugin-api@0.6.14-next.2
11
+ - @backstage/catalog-model@1.4.5-next.0
12
+ - @backstage/errors@1.2.4-next.0
13
+
14
+ ## 0.1.0-next.1
15
+
16
+ ### Patch Changes
17
+
18
+ - 72dd380: Ensure that the config schema is present
19
+ - Updated dependencies
20
+ - @backstage/backend-common@0.21.4-next.1
21
+ - @backstage/backend-plugin-api@0.6.14-next.1
22
+ - @backstage/plugin-auth-node@0.4.9-next.1
23
+ - @backstage/catalog-model@1.4.5-next.0
24
+ - @backstage/errors@1.2.4-next.0
25
+
3
26
  ## 0.1.0-next.0
4
27
 
5
28
  ### Minor Changes
package/config.d.ts ADDED
@@ -0,0 +1,42 @@
1
+ /*
2
+ * Copyright 2024 The Backstage Authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ export interface Config {
18
+ /** Configuration options for the auth plugin */
19
+ auth?: {
20
+ providers: {
21
+ guest?: {
22
+ /**
23
+ * The entity reference to use for the guest user.
24
+ * @default user:development/guest
25
+ */
26
+ userEntityRef?: string;
27
+
28
+ /**
29
+ * A list of entity references to user for ownership of the guest user if the user
30
+ * is not found in the catalog.
31
+ * @default [userEntityRef]
32
+ */
33
+ ownershipEntityRefs?: string[];
34
+
35
+ /**
36
+ * Allow users to sign in with the guest provider outside of their development environments.
37
+ */
38
+ dangerouslyAllowOutsideDevelopment?: boolean;
39
+ };
40
+ };
41
+ };
42
+ }
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@backstage/plugin-auth-backend-module-guest-provider",
3
+ "version": "0.1.0-next.2",
3
4
  "description": "The guest-provider backend module for the auth plugin.",
4
- "version": "0.1.0-next.0",
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
+ },
8
8
  "publishConfig": {
9
9
  "access": "public",
10
10
  "main": "dist/index.cjs.js",
@@ -15,33 +15,35 @@
15
15
  "url": "https://github.com/backstage/backstage",
16
16
  "directory": "plugins/auth-backend-module-guest-provider"
17
17
  },
18
- "backstage": {
19
- "role": "backend-plugin-module"
20
- },
18
+ "license": "Apache-2.0",
19
+ "main": "dist/index.cjs.js",
20
+ "types": "dist/index.d.ts",
21
+ "files": [
22
+ "dist",
23
+ "config.d.ts"
24
+ ],
21
25
  "scripts": {
22
- "start": "backstage-cli package start",
23
26
  "build": "backstage-cli package build",
24
- "lint": "backstage-cli package lint",
25
- "test": "backstage-cli package test",
26
27
  "clean": "backstage-cli package clean",
28
+ "lint": "backstage-cli package lint",
27
29
  "prepack": "backstage-cli package prepack",
28
- "postpack": "backstage-cli package postpack"
30
+ "postpack": "backstage-cli package postpack",
31
+ "start": "backstage-cli package start",
32
+ "test": "backstage-cli package test"
29
33
  },
30
34
  "dependencies": {
31
- "@backstage/backend-common": "^0.21.3-next.0",
32
- "@backstage/backend-plugin-api": "^0.6.13-next.0",
35
+ "@backstage/backend-common": "^0.21.4-next.2",
36
+ "@backstage/backend-plugin-api": "^0.6.14-next.2",
33
37
  "@backstage/catalog-model": "^1.4.5-next.0",
34
38
  "@backstage/errors": "^1.2.4-next.0",
35
- "@backstage/plugin-auth-node": "^0.4.8-next.0",
39
+ "@backstage/plugin-auth-node": "^0.4.9-next.2",
36
40
  "passport-oauth2": "^1.7.0"
37
41
  },
38
42
  "devDependencies": {
39
- "@backstage/backend-test-utils": "^0.3.3-next.0",
40
- "@backstage/cli": "^0.25.3-next.0",
41
- "@backstage/config": "^1.1.2-next.0",
43
+ "@backstage/backend-test-utils": "^0.3.4-next.2",
44
+ "@backstage/cli": "^0.25.3-next.2",
45
+ "@backstage/config": "^1.2.0-next.1",
42
46
  "express": "^4.18.2"
43
47
  },
44
- "files": [
45
- "dist"
46
- ]
48
+ "configSchema": "config.d.ts"
47
49
  }