@backstage/plugin-auth-backend 0.20.1-next.0 → 0.20.1-next.2
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/dist/index.cjs.js +71 -145
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +6 -40
- package/package.json +19 -18
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
|
|
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
|
|
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
|
|
630
|
+
authHandler?: AuthHandler<_backstage_plugin_auth_backend_module_oauth2_proxy_provider.OAuth2ProxyResult> | undefined;
|
|
665
631
|
signIn: {
|
|
666
|
-
resolver: SignInResolver<OAuth2ProxyResult
|
|
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;
|
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.1-next.
|
|
4
|
+
"version": "0.20.1-next.2",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -32,23 +32,24 @@
|
|
|
32
32
|
"clean": "backstage-cli package clean"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@backstage/backend-common": "^0.20.0-next.
|
|
36
|
-
"@backstage/backend-plugin-api": "^0.6.8-next.
|
|
37
|
-
"@backstage/catalog-client": "^1.
|
|
35
|
+
"@backstage/backend-common": "^0.20.0-next.2",
|
|
36
|
+
"@backstage/backend-plugin-api": "^0.6.8-next.2",
|
|
37
|
+
"@backstage/catalog-client": "^1.5.0-next.1",
|
|
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.0-next.
|
|
42
|
-
"@backstage/plugin-auth-backend-module-gcp-iap-provider": "^0.2.2-next.
|
|
43
|
-
"@backstage/plugin-auth-backend-module-github-provider": "^0.1.5-next.
|
|
44
|
-
"@backstage/plugin-auth-backend-module-gitlab-provider": "^0.1.5-next.
|
|
45
|
-
"@backstage/plugin-auth-backend-module-google-provider": "^0.1.5-next.
|
|
46
|
-
"@backstage/plugin-auth-backend-module-oauth2-provider": "^0.1.5-next.
|
|
47
|
-
"@backstage/plugin-auth-backend-module-
|
|
48
|
-
"@backstage/plugin-auth-
|
|
49
|
-
"@backstage/plugin-
|
|
41
|
+
"@backstage/plugin-auth-backend-module-atlassian-provider": "^0.1.0-next.2",
|
|
42
|
+
"@backstage/plugin-auth-backend-module-gcp-iap-provider": "^0.2.2-next.2",
|
|
43
|
+
"@backstage/plugin-auth-backend-module-github-provider": "^0.1.5-next.2",
|
|
44
|
+
"@backstage/plugin-auth-backend-module-gitlab-provider": "^0.1.5-next.2",
|
|
45
|
+
"@backstage/plugin-auth-backend-module-google-provider": "^0.1.5-next.2",
|
|
46
|
+
"@backstage/plugin-auth-backend-module-oauth2-provider": "^0.1.5-next.2",
|
|
47
|
+
"@backstage/plugin-auth-backend-module-oauth2-proxy-provider": "^0.1.0-next.1",
|
|
48
|
+
"@backstage/plugin-auth-backend-module-okta-provider": "^0.0.1-next.2",
|
|
49
|
+
"@backstage/plugin-auth-node": "^0.4.2-next.2",
|
|
50
|
+
"@backstage/plugin-catalog-node": "^1.6.0-next.2",
|
|
50
51
|
"@backstage/types": "^1.1.1",
|
|
51
|
-
"@google-cloud/firestore": "^
|
|
52
|
+
"@google-cloud/firestore": "^7.0.0",
|
|
52
53
|
"@types/express": "^4.17.6",
|
|
53
54
|
"@types/passport": "^1.0.3",
|
|
54
55
|
"compression": "^1.7.4",
|
|
@@ -70,7 +71,7 @@
|
|
|
70
71
|
"node-cache": "^5.1.2",
|
|
71
72
|
"node-fetch": "^2.6.7",
|
|
72
73
|
"openid-client": "^5.2.1",
|
|
73
|
-
"passport": "^0.
|
|
74
|
+
"passport": "^0.7.0",
|
|
74
75
|
"passport-auth0": "^1.4.3",
|
|
75
76
|
"passport-bitbucket-oauth2": "^0.1.2",
|
|
76
77
|
"passport-github2": "^0.1.12",
|
|
@@ -85,9 +86,9 @@
|
|
|
85
86
|
"yn": "^4.0.0"
|
|
86
87
|
},
|
|
87
88
|
"devDependencies": {
|
|
88
|
-
"@backstage/backend-defaults": "^0.2.8-next.
|
|
89
|
-
"@backstage/backend-test-utils": "^0.2.9-next.
|
|
90
|
-
"@backstage/cli": "^0.
|
|
89
|
+
"@backstage/backend-defaults": "^0.2.8-next.2",
|
|
90
|
+
"@backstage/backend-test-utils": "^0.2.9-next.2",
|
|
91
|
+
"@backstage/cli": "^0.25.0-next.2",
|
|
91
92
|
"@types/body-parser": "^1.19.0",
|
|
92
93
|
"@types/cookie-parser": "^1.4.2",
|
|
93
94
|
"@types/express-session": "^1.17.2",
|