@backstage/plugin-auth-backend 0.16.0-next.2 → 0.16.0

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/dist/index.d.ts CHANGED
@@ -5,12 +5,12 @@ import { GetEntitiesRequest, CatalogApi } from '@backstage/catalog-client';
5
5
  import { Entity, UserEntity } from '@backstage/catalog-model';
6
6
  import { Config } from '@backstage/config';
7
7
  import { BackstageSignInResult, BackstageIdentityResponse } from '@backstage/plugin-auth-node';
8
+ import { JsonValue } from '@backstage/types';
8
9
  import { Profile } from 'passport';
9
10
  import * as _backstage_backend_common from '@backstage/backend-common';
10
11
  import { PluginDatabaseManager, PluginEndpointDiscovery, TokenManager } from '@backstage/backend-common';
11
12
  import { IncomingHttpHeaders } from 'http';
12
13
  import { TokenSet, UserinfoResponse } from 'openid-client';
13
- import { JsonValue } from '@backstage/types';
14
14
 
15
15
  /**
16
16
  * Parameters used to issue new ID Tokens
@@ -18,13 +18,20 @@ import { JsonValue } from '@backstage/types';
18
18
  * @public
19
19
  */
20
20
  declare type TokenParams = {
21
- /** The claims that will be embedded within the token */
21
+ /**
22
+ * The claims that will be embedded within the token. At a minimum, this should include
23
+ * the subject claim, `sub`. It is common to also list entity ownership relations in the
24
+ * `ent` list. Additional claims may also be added at the developer's discretion except
25
+ * for the following list, which will be overwritten by the TokenIssuer: `iss`, `aud`,
26
+ * `iat`, and `exp`. The Backstage team also maintains the right add new claims in the future
27
+ * without listing the change as a "breaking change".
28
+ */
22
29
  claims: {
23
30
  /** The token subject, i.e. User ID */
24
31
  sub: string;
25
32
  /** A list of entity references that the user claims ownership through */
26
33
  ent?: string[];
27
- };
34
+ } & Record<string, JsonValue>;
28
35
  };
29
36
 
30
37
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@backstage/plugin-auth-backend",
3
3
  "description": "A Backstage backend plugin that handles authentication",
4
- "version": "0.16.0-next.2",
4
+ "version": "0.16.0",
5
5
  "main": "dist/index.cjs.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "license": "Apache-2.0",
@@ -32,12 +32,12 @@
32
32
  "clean": "backstage-cli package clean"
33
33
  },
34
34
  "dependencies": {
35
- "@backstage/backend-common": "^0.15.1-next.2",
36
- "@backstage/catalog-client": "^1.0.5-next.1",
37
- "@backstage/catalog-model": "^1.1.0",
38
- "@backstage/config": "^1.0.1",
39
- "@backstage/errors": "^1.1.0",
40
- "@backstage/plugin-auth-node": "^0.2.5-next.2",
35
+ "@backstage/backend-common": "^0.15.1",
36
+ "@backstage/catalog-client": "^1.1.0",
37
+ "@backstage/catalog-model": "^1.1.1",
38
+ "@backstage/config": "^1.0.2",
39
+ "@backstage/errors": "^1.1.1",
40
+ "@backstage/plugin-auth-node": "^0.2.5",
41
41
  "@backstage/types": "^1.0.0",
42
42
  "@davidzemon/passport-okta-oauth": "^0.0.5",
43
43
  "@google-cloud/firestore": "^6.0.0",
@@ -62,6 +62,7 @@
62
62
  "node-fetch": "^2.6.7",
63
63
  "openid-client": "^5.1.3",
64
64
  "passport": "^0.6.0",
65
+ "passport-auth0": "^1.4.3",
65
66
  "passport-bitbucket-oauth2": "^0.1.2",
66
67
  "passport-github2": "^0.1.12",
67
68
  "passport-gitlab2": "^5.0.0",
@@ -75,12 +76,13 @@
75
76
  "yn": "^4.0.0"
76
77
  },
77
78
  "devDependencies": {
78
- "@backstage/backend-test-utils": "^0.1.28-next.2",
79
- "@backstage/cli": "^0.19.0-next.2",
79
+ "@backstage/backend-test-utils": "^0.1.28",
80
+ "@backstage/cli": "^0.19.0",
80
81
  "@types/body-parser": "^1.19.0",
81
82
  "@types/cookie-parser": "^1.4.2",
82
83
  "@types/express-session": "^1.17.2",
83
84
  "@types/jwt-decode": "^3.1.0",
85
+ "@types/passport-auth0": "^1.0.5",
84
86
  "@types/passport-github2": "^1.2.4",
85
87
  "@types/passport-google-oauth20": "^2.0.3",
86
88
  "@types/passport-microsoft": "^0.0.0",
@@ -96,5 +98,5 @@
96
98
  "config.d.ts"
97
99
  ],
98
100
  "configSchema": "config.d.ts",
99
- "gitHead": "24f889f173370f060725fcf9404081e40769beb4"
101
+ "gitHead": "25b94e63455f1fb170506f9e84e3f430f4b79406"
100
102
  }