@backstage/plugin-auth-backend-module-gcp-iap-provider 0.4.16-next.0 → 0.4.17-next.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/CHANGELOG.md +16 -0
- package/config.schema.json +151 -0
- package/package.json +7 -7
- package/config.d.ts +0 -62
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @backstage/plugin-auth-backend-module-gcp-iap-provider
|
|
2
2
|
|
|
3
|
+
## 0.4.17-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @backstage/plugin-auth-node@0.7.3-next.0
|
|
9
|
+
- @backstage/backend-plugin-api@1.9.3-next.0
|
|
10
|
+
|
|
11
|
+
## 0.4.16
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
- @backstage/backend-plugin-api@1.9.2
|
|
17
|
+
- @backstage/plugin-auth-node@0.7.2
|
|
18
|
+
|
|
3
19
|
## 0.4.16-next.0
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"auth": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"providers": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"gcpIap": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"audience": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "The audience to use when validating incoming JWT tokens. See https://backstage.io/docs/auth/google/gcp-iap-auth"
|
|
17
|
+
},
|
|
18
|
+
"jwtHeader": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "The name of the header to read the JWT token from, defaults to `'x-goog-iap-jwt-assertion'`."
|
|
21
|
+
},
|
|
22
|
+
"signIn": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"resolvers": {
|
|
26
|
+
"type": "array",
|
|
27
|
+
"items": {
|
|
28
|
+
"anyOf": [
|
|
29
|
+
{
|
|
30
|
+
"type": "object",
|
|
31
|
+
"properties": {
|
|
32
|
+
"resolver": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"const": "emailMatchingUserEntityAnnotation"
|
|
35
|
+
},
|
|
36
|
+
"dangerouslyAllowSignInWithoutUserInCatalog": {
|
|
37
|
+
"type": "boolean"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"required": [
|
|
41
|
+
"resolver"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"type": "object",
|
|
46
|
+
"properties": {
|
|
47
|
+
"resolver": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"const": "idMatchingUserEntityAnnotation"
|
|
50
|
+
},
|
|
51
|
+
"dangerouslyAllowSignInWithoutUserInCatalog": {
|
|
52
|
+
"type": "boolean"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"required": [
|
|
56
|
+
"resolver"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"type": "object",
|
|
61
|
+
"properties": {
|
|
62
|
+
"resolver": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"const": "emailLocalPartMatchingUserEntityName"
|
|
65
|
+
},
|
|
66
|
+
"allowedDomains": {
|
|
67
|
+
"type": "array",
|
|
68
|
+
"items": {
|
|
69
|
+
"type": "string"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"dangerouslyAllowSignInWithoutUserInCatalog": {
|
|
73
|
+
"type": "boolean"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"required": [
|
|
77
|
+
"resolver"
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"type": "object",
|
|
82
|
+
"properties": {
|
|
83
|
+
"resolver": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"const": "emailMatchingUserEntityProfileEmail"
|
|
86
|
+
},
|
|
87
|
+
"dangerouslyAllowSignInWithoutUserInCatalog": {
|
|
88
|
+
"type": "boolean"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"required": [
|
|
92
|
+
"resolver"
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"required": [
|
|
100
|
+
"resolvers"
|
|
101
|
+
]
|
|
102
|
+
},
|
|
103
|
+
"sessionDuration": {
|
|
104
|
+
"anyOf": [
|
|
105
|
+
{
|
|
106
|
+
"type": "object",
|
|
107
|
+
"properties": {
|
|
108
|
+
"years": {
|
|
109
|
+
"type": "number"
|
|
110
|
+
},
|
|
111
|
+
"months": {
|
|
112
|
+
"type": "number"
|
|
113
|
+
},
|
|
114
|
+
"weeks": {
|
|
115
|
+
"type": "number"
|
|
116
|
+
},
|
|
117
|
+
"days": {
|
|
118
|
+
"type": "number"
|
|
119
|
+
},
|
|
120
|
+
"hours": {
|
|
121
|
+
"type": "number"
|
|
122
|
+
},
|
|
123
|
+
"minutes": {
|
|
124
|
+
"type": "number"
|
|
125
|
+
},
|
|
126
|
+
"seconds": {
|
|
127
|
+
"type": "number"
|
|
128
|
+
},
|
|
129
|
+
"milliseconds": {
|
|
130
|
+
"type": "number"
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"description": "Human friendly durations object."
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"type": "string"
|
|
137
|
+
}
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"required": [
|
|
142
|
+
"audience"
|
|
143
|
+
],
|
|
144
|
+
"description": "Configuration for the Google Cloud Platform Identity-Aware Proxy (IAP) auth provider."
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-auth-backend-module-gcp-iap-provider",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.17-next.0",
|
|
4
4
|
"description": "A GCP IAP auth provider module for the Backstage auth backend",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "backend-plugin-module",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"types": "dist/index.d.ts",
|
|
30
30
|
"files": [
|
|
31
31
|
"dist",
|
|
32
|
-
"config.
|
|
32
|
+
"config.schema.json"
|
|
33
33
|
],
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build": "backstage-cli package build",
|
|
@@ -41,19 +41,19 @@
|
|
|
41
41
|
"test": "backstage-cli package test"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@backstage/backend-plugin-api": "1.9.
|
|
44
|
+
"@backstage/backend-plugin-api": "1.9.3-next.0",
|
|
45
45
|
"@backstage/errors": "1.3.1",
|
|
46
|
-
"@backstage/plugin-auth-node": "0.7.
|
|
46
|
+
"@backstage/plugin-auth-node": "0.7.3-next.0",
|
|
47
47
|
"@backstage/types": "1.2.2",
|
|
48
48
|
"google-auth-library": "^9.0.0",
|
|
49
49
|
"zod": "^3.25.76 || ^4.0.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@backstage/backend-test-utils": "1.11.
|
|
53
|
-
"@backstage/cli": "0.36.
|
|
52
|
+
"@backstage/backend-test-utils": "1.11.5-next.0",
|
|
53
|
+
"@backstage/cli": "0.36.4-next.0",
|
|
54
54
|
"express": "^4.22.0"
|
|
55
55
|
},
|
|
56
|
-
"configSchema": "config.
|
|
56
|
+
"configSchema": "config.schema.json",
|
|
57
57
|
"typesVersions": {
|
|
58
58
|
"*": {
|
|
59
59
|
"package.json": [
|
package/config.d.ts
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2020 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
|
-
import { HumanDuration } from '@backstage/types';
|
|
18
|
-
|
|
19
|
-
export interface Config {
|
|
20
|
-
auth?: {
|
|
21
|
-
providers?: {
|
|
22
|
-
/**
|
|
23
|
-
* Configuration for the Google Cloud Platform Identity-Aware Proxy (IAP) auth provider.
|
|
24
|
-
*/
|
|
25
|
-
gcpIap?: {
|
|
26
|
-
/**
|
|
27
|
-
* The audience to use when validating incoming JWT tokens.
|
|
28
|
-
* See https://backstage.io/docs/auth/google/gcp-iap-auth
|
|
29
|
-
*/
|
|
30
|
-
audience: string;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* The name of the header to read the JWT token from, defaults to `'x-goog-iap-jwt-assertion'`.
|
|
34
|
-
*/
|
|
35
|
-
jwtHeader?: string;
|
|
36
|
-
|
|
37
|
-
signIn?: {
|
|
38
|
-
resolvers: Array<
|
|
39
|
-
| {
|
|
40
|
-
resolver: 'emailMatchingUserEntityAnnotation';
|
|
41
|
-
dangerouslyAllowSignInWithoutUserInCatalog?: boolean;
|
|
42
|
-
}
|
|
43
|
-
| {
|
|
44
|
-
resolver: 'idMatchingUserEntityAnnotation';
|
|
45
|
-
dangerouslyAllowSignInWithoutUserInCatalog?: boolean;
|
|
46
|
-
}
|
|
47
|
-
| {
|
|
48
|
-
resolver: 'emailLocalPartMatchingUserEntityName';
|
|
49
|
-
allowedDomains?: string[];
|
|
50
|
-
dangerouslyAllowSignInWithoutUserInCatalog?: boolean;
|
|
51
|
-
}
|
|
52
|
-
| {
|
|
53
|
-
resolver: 'emailMatchingUserEntityProfileEmail';
|
|
54
|
-
dangerouslyAllowSignInWithoutUserInCatalog?: boolean;
|
|
55
|
-
}
|
|
56
|
-
>;
|
|
57
|
-
};
|
|
58
|
-
sessionDuration?: HumanDuration | string;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
}
|