@backstage/plugin-auth-backend 0.20.3 → 0.20.4-next.1
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 +52 -0
- package/config.d.ts +0 -28
- package/dist/index.cjs.js +77 -537
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +21 -19
- package/package.json +21 -19
package/dist/index.d.ts
CHANGED
|
@@ -7,9 +7,12 @@ import { Profile } from 'passport';
|
|
|
7
7
|
import { PluginDatabaseManager, PluginEndpointDiscovery, TokenManager } from '@backstage/backend-common';
|
|
8
8
|
import { CatalogApi } from '@backstage/catalog-client';
|
|
9
9
|
import { Config } from '@backstage/config';
|
|
10
|
+
import * as _backstage_plugin_auth_backend_module_aws_alb_provider from '@backstage/plugin-auth-backend-module-aws-alb-provider';
|
|
11
|
+
import { AwsAlbResult as AwsAlbResult$1 } from '@backstage/plugin-auth-backend-module-aws-alb-provider';
|
|
10
12
|
import * as _backstage_plugin_auth_backend_module_oauth2_proxy_provider from '@backstage/plugin-auth-backend-module-oauth2-proxy-provider';
|
|
11
13
|
import { OAuth2ProxyResult as OAuth2ProxyResult$1 } from '@backstage/plugin-auth-backend-module-oauth2-proxy-provider';
|
|
12
|
-
import
|
|
14
|
+
import * as _backstage_plugin_auth_backend_module_oidc_provider from '@backstage/plugin-auth-backend-module-oidc-provider';
|
|
15
|
+
import { OidcAuthResult as OidcAuthResult$1 } from '@backstage/plugin-auth-backend-module-oidc-provider';
|
|
13
16
|
import * as _backstage_plugin_auth_backend_module_gcp_iap_provider from '@backstage/plugin-auth-backend-module-gcp-iap-provider';
|
|
14
17
|
import { GcpIapTokenInfo as GcpIapTokenInfo$1, GcpIapResult as GcpIapResult$1 } from '@backstage/plugin-auth-backend-module-gcp-iap-provider';
|
|
15
18
|
import { UserEntity, Entity } from '@backstage/catalog-model';
|
|
@@ -241,12 +244,14 @@ type StateEncoder = (req: OAuthStartRequest) => Promise<{
|
|
|
241
244
|
encodedState: string;
|
|
242
245
|
}>;
|
|
243
246
|
|
|
244
|
-
/**
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
247
|
+
/**
|
|
248
|
+
* The result of the initial auth challenge. This is the input to the auth
|
|
249
|
+
* callbacks.
|
|
250
|
+
*
|
|
251
|
+
* @public
|
|
252
|
+
* @deprecated import from `@backstage/plugin-auth-backend-module-aws-alb-provider` instead
|
|
253
|
+
*/
|
|
254
|
+
type AwsAlbResult = AwsAlbResult$1;
|
|
250
255
|
|
|
251
256
|
/** @public */
|
|
252
257
|
type EasyAuthResult = {
|
|
@@ -463,13 +468,10 @@ type GithubOAuthResult = {
|
|
|
463
468
|
type OAuth2ProxyResult = OAuth2ProxyResult$1;
|
|
464
469
|
|
|
465
470
|
/**
|
|
466
|
-
* authentication result for the OIDC which includes the token set and user information (a profile response sent by OIDC server)
|
|
467
471
|
* @public
|
|
472
|
+
* @deprecated Use OidcAuthResult from `@backstage/plugin-auth-backend-module-oidc-provider` instead
|
|
468
473
|
*/
|
|
469
|
-
type OidcAuthResult =
|
|
470
|
-
tokenset: TokenSet;
|
|
471
|
-
userinfo: UserinfoResponse;
|
|
472
|
-
};
|
|
474
|
+
type OidcAuthResult = OidcAuthResult$1;
|
|
473
475
|
|
|
474
476
|
/** @public */
|
|
475
477
|
type SamlAuthResult = {
|
|
@@ -518,9 +520,9 @@ declare const providers: Readonly<{
|
|
|
518
520
|
}>;
|
|
519
521
|
awsAlb: Readonly<{
|
|
520
522
|
create: (options?: {
|
|
521
|
-
authHandler?: AuthHandler<AwsAlbResult> | undefined;
|
|
523
|
+
authHandler?: AuthHandler<_backstage_plugin_auth_backend_module_aws_alb_provider.AwsAlbResult> | undefined;
|
|
522
524
|
signIn: {
|
|
523
|
-
resolver: SignInResolver<AwsAlbResult>;
|
|
525
|
+
resolver: SignInResolver<_backstage_plugin_auth_backend_module_aws_alb_provider.AwsAlbResult>;
|
|
524
526
|
};
|
|
525
527
|
} | undefined) => _backstage_plugin_auth_node.AuthProviderFactory;
|
|
526
528
|
resolvers: never;
|
|
@@ -611,9 +613,9 @@ declare const providers: Readonly<{
|
|
|
611
613
|
} | undefined;
|
|
612
614
|
} | undefined) => _backstage_plugin_auth_node.AuthProviderFactory;
|
|
613
615
|
resolvers: Readonly<{
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
emailMatchingUserEntityAnnotation()
|
|
616
|
+
emailMatchingUserEntityProfileEmail: () => _backstage_plugin_auth_node.SignInResolver<OAuthResult>;
|
|
617
|
+
emailLocalPartMatchingUserEntityName: () => _backstage_plugin_auth_node.SignInResolver<OAuthResult>;
|
|
618
|
+
emailMatchingUserEntityAnnotation: () => _backstage_plugin_auth_node.SignInResolver<OAuthResult>;
|
|
617
619
|
}>;
|
|
618
620
|
}>;
|
|
619
621
|
oauth2: Readonly<{
|
|
@@ -636,9 +638,9 @@ declare const providers: Readonly<{
|
|
|
636
638
|
}>;
|
|
637
639
|
oidc: Readonly<{
|
|
638
640
|
create: (options?: {
|
|
639
|
-
authHandler?: AuthHandler<OidcAuthResult> | undefined;
|
|
641
|
+
authHandler?: AuthHandler<_backstage_plugin_auth_backend_module_oidc_provider.OidcAuthResult> | undefined;
|
|
640
642
|
signIn?: {
|
|
641
|
-
resolver: SignInResolver<OidcAuthResult>;
|
|
643
|
+
resolver: SignInResolver<_backstage_plugin_auth_backend_module_oidc_provider.OidcAuthResult>;
|
|
642
644
|
} | undefined;
|
|
643
645
|
} | undefined) => _backstage_plugin_auth_node.AuthProviderFactory;
|
|
644
646
|
resolvers: Readonly<{
|
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.20.
|
|
4
|
+
"version": "0.20.4-next.1",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -32,22 +32,25 @@
|
|
|
32
32
|
"clean": "backstage-cli package clean"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@backstage/backend-common": "^0.
|
|
36
|
-
"@backstage/backend-plugin-api": "^0.6.
|
|
37
|
-
"@backstage/catalog-client": "^1.
|
|
38
|
-
"@backstage/catalog-model": "^1.4.
|
|
35
|
+
"@backstage/backend-common": "^0.21.0-next.1",
|
|
36
|
+
"@backstage/backend-plugin-api": "^0.6.10-next.1",
|
|
37
|
+
"@backstage/catalog-client": "^1.6.0-next.1",
|
|
38
|
+
"@backstage/catalog-model": "^1.4.4-next.0",
|
|
39
39
|
"@backstage/config": "^1.1.1",
|
|
40
40
|
"@backstage/errors": "^1.2.3",
|
|
41
|
-
"@backstage/plugin-auth-backend-module-atlassian-provider": "^0.1.1",
|
|
42
|
-
"@backstage/plugin-auth-backend-module-
|
|
43
|
-
"@backstage/plugin-auth-backend-module-
|
|
44
|
-
"@backstage/plugin-auth-backend-module-
|
|
45
|
-
"@backstage/plugin-auth-backend-module-
|
|
46
|
-
"@backstage/plugin-auth-backend-module-
|
|
47
|
-
"@backstage/plugin-auth-backend-module-
|
|
48
|
-
"@backstage/plugin-auth-backend-module-
|
|
49
|
-
"@backstage/plugin-auth-
|
|
50
|
-
"@backstage/plugin-
|
|
41
|
+
"@backstage/plugin-auth-backend-module-atlassian-provider": "^0.1.2-next.1",
|
|
42
|
+
"@backstage/plugin-auth-backend-module-aws-alb-provider": "^0.1.0-next.0",
|
|
43
|
+
"@backstage/plugin-auth-backend-module-gcp-iap-provider": "^0.2.4-next.1",
|
|
44
|
+
"@backstage/plugin-auth-backend-module-github-provider": "^0.1.7-next.1",
|
|
45
|
+
"@backstage/plugin-auth-backend-module-gitlab-provider": "^0.1.7-next.1",
|
|
46
|
+
"@backstage/plugin-auth-backend-module-google-provider": "^0.1.7-next.1",
|
|
47
|
+
"@backstage/plugin-auth-backend-module-microsoft-provider": "^0.1.5-next.1",
|
|
48
|
+
"@backstage/plugin-auth-backend-module-oauth2-provider": "^0.1.7-next.1",
|
|
49
|
+
"@backstage/plugin-auth-backend-module-oauth2-proxy-provider": "^0.1.2-next.1",
|
|
50
|
+
"@backstage/plugin-auth-backend-module-oidc-provider": "^0.1.0-next.1",
|
|
51
|
+
"@backstage/plugin-auth-backend-module-okta-provider": "^0.0.3-next.1",
|
|
52
|
+
"@backstage/plugin-auth-node": "^0.4.4-next.1",
|
|
53
|
+
"@backstage/plugin-catalog-node": "^1.6.2-next.1",
|
|
51
54
|
"@google-cloud/firestore": "^7.0.0",
|
|
52
55
|
"@types/express": "^4.17.6",
|
|
53
56
|
"@types/passport": "^1.0.3",
|
|
@@ -74,7 +77,6 @@
|
|
|
74
77
|
"passport-auth0": "^1.4.3",
|
|
75
78
|
"passport-bitbucket-oauth2": "^0.1.2",
|
|
76
79
|
"passport-github2": "^0.1.12",
|
|
77
|
-
"passport-gitlab2": "^5.0.0",
|
|
78
80
|
"passport-google-oauth20": "^2.0.0",
|
|
79
81
|
"passport-microsoft": "^1.0.0",
|
|
80
82
|
"passport-oauth2": "^1.6.1",
|
|
@@ -85,9 +87,9 @@
|
|
|
85
87
|
"yn": "^4.0.0"
|
|
86
88
|
},
|
|
87
89
|
"devDependencies": {
|
|
88
|
-
"@backstage/backend-defaults": "^0.2.
|
|
89
|
-
"@backstage/backend-test-utils": "^0.
|
|
90
|
-
"@backstage/cli": "^0.25.1",
|
|
90
|
+
"@backstage/backend-defaults": "^0.2.10-next.1",
|
|
91
|
+
"@backstage/backend-test-utils": "^0.3.0-next.1",
|
|
92
|
+
"@backstage/cli": "^0.25.2-next.1",
|
|
91
93
|
"@types/body-parser": "^1.19.0",
|
|
92
94
|
"@types/cookie-parser": "^1.4.2",
|
|
93
95
|
"@types/express-session": "^1.17.2",
|