@backstage/plugin-auth-backend 0.20.0 → 0.20.1-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/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api';
3
2
  import { LoggerService } from '@backstage/backend-plugin-api';
4
3
  import express from 'express';
@@ -8,7 +7,8 @@ import { Profile } from 'passport';
8
7
  import { PluginDatabaseManager, PluginEndpointDiscovery, TokenManager } from '@backstage/backend-common';
9
8
  import { CatalogApi } from '@backstage/catalog-client';
10
9
  import { Config } from '@backstage/config';
11
- import { IncomingHttpHeaders } from 'http';
10
+ import * as _backstage_plugin_auth_backend_module_oauth2_proxy_provider from '@backstage/plugin-auth-backend-module-oauth2-proxy-provider';
11
+ import { OAuth2ProxyResult as OAuth2ProxyResult$1 } from '@backstage/plugin-auth-backend-module-oauth2-proxy-provider';
12
12
  import { TokenSet, UserinfoResponse } from 'openid-client';
13
13
  import * as _backstage_plugin_auth_backend_module_gcp_iap_provider from '@backstage/plugin-auth-backend-module-gcp-iap-provider';
14
14
  import { GcpIapTokenInfo as GcpIapTokenInfo$1, GcpIapResult as GcpIapResult$1 } from '@backstage/plugin-auth-backend-module-gcp-iap-provider';
@@ -457,44 +457,10 @@ type GithubOAuthResult = {
457
457
  };
458
458
 
459
459
  /**
460
- * JWT header extraction result, containing the raw value and the parsed JWT
461
- * payload.
462
- *
463
460
  * @public
461
+ * @deprecated import from `@backstage/plugin-auth-backend-module-oauth2-proxy-provider` instead
464
462
  */
465
- type OAuth2ProxyResult<JWTPayload = {}> = {
466
- /**
467
- * The parsed payload of the `accessToken`. The token is only parsed, not verified.
468
- *
469
- * @deprecated Access through the `headers` instead. This will be removed in a future release.
470
- */
471
- fullProfile: JWTPayload;
472
- /**
473
- * The token received via the X-OAUTH2-PROXY-ID-TOKEN header. Will be an empty string
474
- * if the header is not set. Note the this is typically an OpenID Connect token.
475
- *
476
- * @deprecated Access through the `headers` instead. This will be removed in a future release.
477
- */
478
- accessToken: string;
479
- /**
480
- * The headers of the incoming request from the OAuth2 proxy. This will include
481
- * both the headers set by the client as well as the ones added by the OAuth2 proxy.
482
- * You should only trust the headers that are injected by the OAuth2 proxy.
483
- *
484
- * Useful headers to use to complete the sign-in are for example `x-forwarded-user`
485
- * and `x-forwarded-email`. See the OAuth2 proxy documentation for more information
486
- * about the available headers and how to enable them. In particular it is possible
487
- * to forward access and identity tokens, which can be user for additional verification
488
- * and lookups.
489
- */
490
- headers: IncomingHttpHeaders;
491
- /**
492
- * Provides convenient access to the request headers.
493
- *
494
- * This call is simply forwarded to `req.get(name)`.
495
- */
496
- getHeader(name: string): string | undefined;
497
- };
463
+ type OAuth2ProxyResult = OAuth2ProxyResult$1;
498
464
 
499
465
  /**
500
466
  * authentication result for the OIDC which includes the token set and user information (a profile response sent by OIDC server)
@@ -661,9 +627,9 @@ declare const providers: Readonly<{
661
627
  }>;
662
628
  oauth2Proxy: Readonly<{
663
629
  create: (options: {
664
- authHandler?: AuthHandler<OAuth2ProxyResult<unknown>> | undefined;
630
+ authHandler?: AuthHandler<_backstage_plugin_auth_backend_module_oauth2_proxy_provider.OAuth2ProxyResult> | undefined;
665
631
  signIn: {
666
- resolver: SignInResolver<OAuth2ProxyResult<unknown>>;
632
+ resolver: SignInResolver<_backstage_plugin_auth_backend_module_oauth2_proxy_provider.OAuth2ProxyResult>;
667
633
  };
668
634
  }) => _backstage_plugin_auth_node.AuthProviderFactory;
669
635
  resolvers: never;
@@ -688,8 +654,6 @@ declare const providers: Readonly<{
688
654
  } | undefined;
689
655
  } | undefined) => _backstage_plugin_auth_node.AuthProviderFactory;
690
656
  resolvers: Readonly<{
691
- emailLocalPartMatchingUserEntityName: () => SignInResolver<unknown>;
692
- emailMatchingUserEntityProfileEmail: () => SignInResolver<unknown>;
693
657
  emailMatchingUserEntityAnnotation(): SignInResolver<OAuthResult>;
694
658
  }>;
695
659
  }>;
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.0",
4
+ "version": "0.20.1-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,24 @@
32
32
  "clean": "backstage-cli package clean"
33
33
  },
34
34
  "dependencies": {
35
- "@backstage/backend-common": "^0.19.9",
36
- "@backstage/backend-plugin-api": "^0.6.7",
37
- "@backstage/catalog-client": "^1.4.6",
35
+ "@backstage/backend-common": "^0.20.0-next.1",
36
+ "@backstage/backend-plugin-api": "^0.6.8-next.1",
37
+ "@backstage/catalog-client": "^1.5.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-gcp-iap-provider": "^0.2.1",
42
- "@backstage/plugin-auth-backend-module-github-provider": "^0.1.4",
43
- "@backstage/plugin-auth-backend-module-gitlab-provider": "^0.1.4",
44
- "@backstage/plugin-auth-backend-module-google-provider": "^0.1.4",
45
- "@backstage/plugin-auth-backend-module-oauth2-provider": "^0.1.4",
46
- "@backstage/plugin-auth-node": "^0.4.1",
47
- "@backstage/plugin-catalog-node": "^1.5.0",
41
+ "@backstage/plugin-auth-backend-module-atlassian-provider": "^0.1.0-next.1",
42
+ "@backstage/plugin-auth-backend-module-gcp-iap-provider": "^0.2.2-next.1",
43
+ "@backstage/plugin-auth-backend-module-github-provider": "^0.1.5-next.1",
44
+ "@backstage/plugin-auth-backend-module-gitlab-provider": "^0.1.5-next.1",
45
+ "@backstage/plugin-auth-backend-module-google-provider": "^0.1.5-next.1",
46
+ "@backstage/plugin-auth-backend-module-oauth2-provider": "^0.1.5-next.1",
47
+ "@backstage/plugin-auth-backend-module-oauth2-proxy-provider": "^0.1.0-next.0",
48
+ "@backstage/plugin-auth-backend-module-okta-provider": "^0.0.1-next.1",
49
+ "@backstage/plugin-auth-node": "^0.4.2-next.1",
50
+ "@backstage/plugin-catalog-node": "^1.5.1-next.1",
48
51
  "@backstage/types": "^1.1.1",
49
- "@davidzemon/passport-okta-oauth": "^0.0.5",
50
- "@google-cloud/firestore": "^6.0.0",
52
+ "@google-cloud/firestore": "^7.0.0",
51
53
  "@types/express": "^4.17.6",
52
54
  "@types/passport": "^1.0.3",
53
55
  "compression": "^1.7.4",
@@ -84,9 +86,9 @@
84
86
  "yn": "^4.0.0"
85
87
  },
86
88
  "devDependencies": {
87
- "@backstage/backend-defaults": "^0.2.7",
88
- "@backstage/backend-test-utils": "^0.2.8",
89
- "@backstage/cli": "^0.24.0",
89
+ "@backstage/backend-defaults": "^0.2.8-next.1",
90
+ "@backstage/backend-test-utils": "^0.2.9-next.1",
91
+ "@backstage/cli": "^0.25.0-next.1",
90
92
  "@types/body-parser": "^1.19.0",
91
93
  "@types/cookie-parser": "^1.4.2",
92
94
  "@types/express-session": "^1.17.2",