@backstage/plugin-auth-backend 0.22.6-next.3 → 0.22.6
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 +38 -0
- package/dist/index.cjs.js +49 -16
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/migrations/20240510120825_user_info.js +49 -0
- package/package.json +23 -23
package/dist/index.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ import { UserEntity, Entity } from '@backstage/catalog-model';
|
|
|
25
25
|
*
|
|
26
26
|
* @public
|
|
27
27
|
*/
|
|
28
|
-
declare const authPlugin:
|
|
28
|
+
declare const authPlugin: _backstage_backend_plugin_api.BackendFeatureCompat;
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* @public
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
// @ts-check
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @param {import('knex').Knex} knex
|
|
21
|
+
*/
|
|
22
|
+
exports.up = async function up(knex) {
|
|
23
|
+
await knex.schema.createTable('user_info', table => {
|
|
24
|
+
table.comment('User information');
|
|
25
|
+
|
|
26
|
+
table
|
|
27
|
+
.string('user_entity_ref')
|
|
28
|
+
.primary()
|
|
29
|
+
.notNullable()
|
|
30
|
+
.comment('User entity reference');
|
|
31
|
+
|
|
32
|
+
table
|
|
33
|
+
.text('user_info', 'longtext')
|
|
34
|
+
.notNullable()
|
|
35
|
+
.comment('User info blob, JSON serialized');
|
|
36
|
+
|
|
37
|
+
table
|
|
38
|
+
.timestamp('exp')
|
|
39
|
+
.notNullable()
|
|
40
|
+
.comment('Expiration timestamp of the user info');
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @param {import('knex').Knex} knex
|
|
46
|
+
*/
|
|
47
|
+
exports.down = async function down(knex) {
|
|
48
|
+
await knex.schema.dropTable('user_info');
|
|
49
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-auth-backend",
|
|
3
|
-
"version": "0.22.6
|
|
3
|
+
"version": "0.22.6",
|
|
4
4
|
"description": "A Backstage backend plugin that handles authentication",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "backend-plugin",
|
|
@@ -43,29 +43,29 @@
|
|
|
43
43
|
"test": "backstage-cli package test"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@backstage/backend-common": "^0.23.0
|
|
47
|
-
"@backstage/backend-plugin-api": "^0.6.19
|
|
46
|
+
"@backstage/backend-common": "^0.23.0",
|
|
47
|
+
"@backstage/backend-plugin-api": "^0.6.19",
|
|
48
48
|
"@backstage/catalog-client": "^1.6.5",
|
|
49
49
|
"@backstage/catalog-model": "^1.5.0",
|
|
50
50
|
"@backstage/config": "^1.2.0",
|
|
51
51
|
"@backstage/errors": "^1.2.4",
|
|
52
|
-
"@backstage/plugin-auth-backend-module-atlassian-provider": "^0.2.0
|
|
53
|
-
"@backstage/plugin-auth-backend-module-aws-alb-provider": "^0.1.11
|
|
54
|
-
"@backstage/plugin-auth-backend-module-azure-easyauth-provider": "^0.1.2
|
|
55
|
-
"@backstage/plugin-auth-backend-module-bitbucket-provider": "^0.1.2
|
|
56
|
-
"@backstage/plugin-auth-backend-module-cloudflare-access-provider": "^0.1.2
|
|
57
|
-
"@backstage/plugin-auth-backend-module-gcp-iap-provider": "^0.2.14
|
|
58
|
-
"@backstage/plugin-auth-backend-module-github-provider": "^0.1.16
|
|
59
|
-
"@backstage/plugin-auth-backend-module-gitlab-provider": "^0.1.16
|
|
60
|
-
"@backstage/plugin-auth-backend-module-google-provider": "^0.1.16
|
|
61
|
-
"@backstage/plugin-auth-backend-module-microsoft-provider": "^0.1.14
|
|
62
|
-
"@backstage/plugin-auth-backend-module-oauth2-provider": "^0.2.0
|
|
63
|
-
"@backstage/plugin-auth-backend-module-oauth2-proxy-provider": "^0.1.12
|
|
64
|
-
"@backstage/plugin-auth-backend-module-oidc-provider": "^0.2.0
|
|
65
|
-
"@backstage/plugin-auth-backend-module-okta-provider": "^0.0.12
|
|
66
|
-
"@backstage/plugin-auth-backend-module-onelogin-provider": "^0.1.0
|
|
67
|
-
"@backstage/plugin-auth-node": "^0.4.14
|
|
68
|
-
"@backstage/plugin-catalog-node": "^1.12.1
|
|
52
|
+
"@backstage/plugin-auth-backend-module-atlassian-provider": "^0.2.0",
|
|
53
|
+
"@backstage/plugin-auth-backend-module-aws-alb-provider": "^0.1.11",
|
|
54
|
+
"@backstage/plugin-auth-backend-module-azure-easyauth-provider": "^0.1.2",
|
|
55
|
+
"@backstage/plugin-auth-backend-module-bitbucket-provider": "^0.1.2",
|
|
56
|
+
"@backstage/plugin-auth-backend-module-cloudflare-access-provider": "^0.1.2",
|
|
57
|
+
"@backstage/plugin-auth-backend-module-gcp-iap-provider": "^0.2.14",
|
|
58
|
+
"@backstage/plugin-auth-backend-module-github-provider": "^0.1.16",
|
|
59
|
+
"@backstage/plugin-auth-backend-module-gitlab-provider": "^0.1.16",
|
|
60
|
+
"@backstage/plugin-auth-backend-module-google-provider": "^0.1.16",
|
|
61
|
+
"@backstage/plugin-auth-backend-module-microsoft-provider": "^0.1.14",
|
|
62
|
+
"@backstage/plugin-auth-backend-module-oauth2-provider": "^0.2.0",
|
|
63
|
+
"@backstage/plugin-auth-backend-module-oauth2-proxy-provider": "^0.1.12",
|
|
64
|
+
"@backstage/plugin-auth-backend-module-oidc-provider": "^0.2.0",
|
|
65
|
+
"@backstage/plugin-auth-backend-module-okta-provider": "^0.0.12",
|
|
66
|
+
"@backstage/plugin-auth-backend-module-onelogin-provider": "^0.1.0",
|
|
67
|
+
"@backstage/plugin-auth-node": "^0.4.14",
|
|
68
|
+
"@backstage/plugin-catalog-node": "^1.12.1",
|
|
69
69
|
"@backstage/types": "^1.1.1",
|
|
70
70
|
"@google-cloud/firestore": "^7.0.0",
|
|
71
71
|
"@node-saml/passport-saml": "^4.0.4",
|
|
@@ -101,9 +101,9 @@
|
|
|
101
101
|
"yn": "^4.0.0"
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
|
-
"@backstage/backend-defaults": "^0.3.0
|
|
105
|
-
"@backstage/backend-test-utils": "^0.4.0
|
|
106
|
-
"@backstage/cli": "^0.26.7
|
|
104
|
+
"@backstage/backend-defaults": "^0.3.0",
|
|
105
|
+
"@backstage/backend-test-utils": "^0.4.0",
|
|
106
|
+
"@backstage/cli": "^0.26.7",
|
|
107
107
|
"@types/body-parser": "^1.19.0",
|
|
108
108
|
"@types/cookie-parser": "^1.4.2",
|
|
109
109
|
"@types/express-session": "^1.17.2",
|