@backstage/plugin-auth-backend 0.20.3 → 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/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 { TokenSet, UserinfoResponse } from 'openid-client';
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
- emailLocalPartMatchingUserEntityName: () => SignInResolver<unknown>;
615
- emailMatchingUserEntityProfileEmail: () => SignInResolver<unknown>;
616
- emailMatchingUserEntityAnnotation(): SignInResolver<OAuthResult>;
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.3",
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.20.1",
36
- "@backstage/backend-plugin-api": "^0.6.9",
37
- "@backstage/catalog-client": "^1.5.2",
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.1",
42
- "@backstage/plugin-auth-backend-module-gcp-iap-provider": "^0.2.3",
43
- "@backstage/plugin-auth-backend-module-github-provider": "^0.1.6",
44
- "@backstage/plugin-auth-backend-module-gitlab-provider": "^0.1.6",
45
- "@backstage/plugin-auth-backend-module-google-provider": "^0.1.6",
46
- "@backstage/plugin-auth-backend-module-oauth2-provider": "^0.1.6",
47
- "@backstage/plugin-auth-backend-module-oauth2-proxy-provider": "^0.1.1",
48
- "@backstage/plugin-auth-backend-module-okta-provider": "^0.0.2",
49
- "@backstage/plugin-auth-node": "^0.4.3",
50
- "@backstage/plugin-catalog-node": "^1.6.1",
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.9",
89
- "@backstage/backend-test-utils": "^0.2.10",
90
- "@backstage/cli": "^0.25.1",
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",