@backstage/plugin-auth-backend 0.20.3-next.2 → 0.20.4-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 +50 -0
- package/config.d.ts +0 -28
- package/dist/index.cjs.js +80 -387
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +9 -11
- package/package.json +19 -18
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,8 @@ import { CatalogApi } from '@backstage/catalog-client';
|
|
|
9
9
|
import { Config } from '@backstage/config';
|
|
10
10
|
import * as _backstage_plugin_auth_backend_module_oauth2_proxy_provider from '@backstage/plugin-auth-backend-module-oauth2-proxy-provider';
|
|
11
11
|
import { OAuth2ProxyResult as OAuth2ProxyResult$1 } from '@backstage/plugin-auth-backend-module-oauth2-proxy-provider';
|
|
12
|
-
import
|
|
12
|
+
import * as _backstage_plugin_auth_backend_module_oidc_provider from '@backstage/plugin-auth-backend-module-oidc-provider';
|
|
13
|
+
import { OidcAuthResult as OidcAuthResult$1 } from '@backstage/plugin-auth-backend-module-oidc-provider';
|
|
13
14
|
import * as _backstage_plugin_auth_backend_module_gcp_iap_provider from '@backstage/plugin-auth-backend-module-gcp-iap-provider';
|
|
14
15
|
import { GcpIapTokenInfo as GcpIapTokenInfo$1, GcpIapResult as GcpIapResult$1 } from '@backstage/plugin-auth-backend-module-gcp-iap-provider';
|
|
15
16
|
import { UserEntity, Entity } from '@backstage/catalog-model';
|
|
@@ -463,13 +464,10 @@ type GithubOAuthResult = {
|
|
|
463
464
|
type OAuth2ProxyResult = OAuth2ProxyResult$1;
|
|
464
465
|
|
|
465
466
|
/**
|
|
466
|
-
* authentication result for the OIDC which includes the token set and user information (a profile response sent by OIDC server)
|
|
467
467
|
* @public
|
|
468
|
+
* @deprecated Use OidcAuthResult from `@backstage/plugin-auth-backend-module-oidc-provider` instead
|
|
468
469
|
*/
|
|
469
|
-
type OidcAuthResult =
|
|
470
|
-
tokenset: TokenSet;
|
|
471
|
-
userinfo: UserinfoResponse;
|
|
472
|
-
};
|
|
470
|
+
type OidcAuthResult = OidcAuthResult$1;
|
|
473
471
|
|
|
474
472
|
/** @public */
|
|
475
473
|
type SamlAuthResult = {
|
|
@@ -611,9 +609,9 @@ declare const providers: Readonly<{
|
|
|
611
609
|
} | undefined;
|
|
612
610
|
} | undefined) => _backstage_plugin_auth_node.AuthProviderFactory;
|
|
613
611
|
resolvers: Readonly<{
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
emailMatchingUserEntityAnnotation()
|
|
612
|
+
emailMatchingUserEntityProfileEmail: () => _backstage_plugin_auth_node.SignInResolver<OAuthResult>;
|
|
613
|
+
emailLocalPartMatchingUserEntityName: () => _backstage_plugin_auth_node.SignInResolver<OAuthResult>;
|
|
614
|
+
emailMatchingUserEntityAnnotation: () => _backstage_plugin_auth_node.SignInResolver<OAuthResult>;
|
|
617
615
|
}>;
|
|
618
616
|
}>;
|
|
619
617
|
oauth2: Readonly<{
|
|
@@ -636,9 +634,9 @@ declare const providers: Readonly<{
|
|
|
636
634
|
}>;
|
|
637
635
|
oidc: Readonly<{
|
|
638
636
|
create: (options?: {
|
|
639
|
-
authHandler?: AuthHandler<OidcAuthResult> | undefined;
|
|
637
|
+
authHandler?: AuthHandler<_backstage_plugin_auth_backend_module_oidc_provider.OidcAuthResult> | undefined;
|
|
640
638
|
signIn?: {
|
|
641
|
-
resolver: SignInResolver<OidcAuthResult>;
|
|
639
|
+
resolver: SignInResolver<_backstage_plugin_auth_backend_module_oidc_provider.OidcAuthResult>;
|
|
642
640
|
} | undefined;
|
|
643
641
|
} | undefined) => _backstage_plugin_auth_node.AuthProviderFactory;
|
|
644
642
|
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.0",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -32,22 +32,24 @@
|
|
|
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.
|
|
35
|
+
"@backstage/backend-common": "^0.21.0-next.0",
|
|
36
|
+
"@backstage/backend-plugin-api": "^0.6.10-next.0",
|
|
37
|
+
"@backstage/catalog-client": "^1.6.0-next.0",
|
|
38
38
|
"@backstage/catalog-model": "^1.4.3",
|
|
39
39
|
"@backstage/config": "^1.1.1",
|
|
40
40
|
"@backstage/errors": "^1.2.3",
|
|
41
|
-
"@backstage/plugin-auth-backend-module-atlassian-provider": "^0.1.
|
|
42
|
-
"@backstage/plugin-auth-backend-module-gcp-iap-provider": "^0.2.
|
|
43
|
-
"@backstage/plugin-auth-backend-module-github-provider": "^0.1.
|
|
44
|
-
"@backstage/plugin-auth-backend-module-gitlab-provider": "^0.1.
|
|
45
|
-
"@backstage/plugin-auth-backend-module-google-provider": "^0.1.
|
|
46
|
-
"@backstage/plugin-auth-backend-module-
|
|
47
|
-
"@backstage/plugin-auth-backend-module-oauth2-
|
|
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.0",
|
|
42
|
+
"@backstage/plugin-auth-backend-module-gcp-iap-provider": "^0.2.4-next.0",
|
|
43
|
+
"@backstage/plugin-auth-backend-module-github-provider": "^0.1.7-next.0",
|
|
44
|
+
"@backstage/plugin-auth-backend-module-gitlab-provider": "^0.1.7-next.0",
|
|
45
|
+
"@backstage/plugin-auth-backend-module-google-provider": "^0.1.7-next.0",
|
|
46
|
+
"@backstage/plugin-auth-backend-module-microsoft-provider": "^0.1.5-next.0",
|
|
47
|
+
"@backstage/plugin-auth-backend-module-oauth2-provider": "^0.1.7-next.0",
|
|
48
|
+
"@backstage/plugin-auth-backend-module-oauth2-proxy-provider": "^0.1.2-next.0",
|
|
49
|
+
"@backstage/plugin-auth-backend-module-oidc-provider": "^0.1.0-next.0",
|
|
50
|
+
"@backstage/plugin-auth-backend-module-okta-provider": "^0.0.3-next.0",
|
|
51
|
+
"@backstage/plugin-auth-node": "^0.4.4-next.0",
|
|
52
|
+
"@backstage/plugin-catalog-node": "^1.6.2-next.0",
|
|
51
53
|
"@google-cloud/firestore": "^7.0.0",
|
|
52
54
|
"@types/express": "^4.17.6",
|
|
53
55
|
"@types/passport": "^1.0.3",
|
|
@@ -74,7 +76,6 @@
|
|
|
74
76
|
"passport-auth0": "^1.4.3",
|
|
75
77
|
"passport-bitbucket-oauth2": "^0.1.2",
|
|
76
78
|
"passport-github2": "^0.1.12",
|
|
77
|
-
"passport-gitlab2": "^5.0.0",
|
|
78
79
|
"passport-google-oauth20": "^2.0.0",
|
|
79
80
|
"passport-microsoft": "^1.0.0",
|
|
80
81
|
"passport-oauth2": "^1.6.1",
|
|
@@ -85,9 +86,9 @@
|
|
|
85
86
|
"yn": "^4.0.0"
|
|
86
87
|
},
|
|
87
88
|
"devDependencies": {
|
|
88
|
-
"@backstage/backend-defaults": "^0.2.
|
|
89
|
-
"@backstage/backend-test-utils": "^0.
|
|
90
|
-
"@backstage/cli": "^0.25.
|
|
89
|
+
"@backstage/backend-defaults": "^0.2.10-next.0",
|
|
90
|
+
"@backstage/backend-test-utils": "^0.3.0-next.0",
|
|
91
|
+
"@backstage/cli": "^0.25.2-next.0",
|
|
91
92
|
"@types/body-parser": "^1.19.0",
|
|
92
93
|
"@types/cookie-parser": "^1.4.2",
|
|
93
94
|
"@types/express-session": "^1.17.2",
|