@backstage/plugin-auth-backend 0.22.4-next.1 → 0.22.4
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 +34 -0
- package/config.d.ts +0 -9
- package/dist/index.cjs.js +101 -509
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +25 -14
- package/package.json +23 -21
package/dist/index.d.ts
CHANGED
|
@@ -9,12 +9,15 @@ import { TokenParams as TokenParams$1, AuthProviderFactory as AuthProviderFactor
|
|
|
9
9
|
import { Profile } from 'passport';
|
|
10
10
|
import * as _backstage_plugin_auth_backend_module_aws_alb_provider from '@backstage/plugin-auth-backend-module-aws-alb-provider';
|
|
11
11
|
import { AwsAlbResult as AwsAlbResult$1 } from '@backstage/plugin-auth-backend-module-aws-alb-provider';
|
|
12
|
+
import * as _backstage_plugin_auth_backend_module_azure_easyauth_provider from '@backstage/plugin-auth-backend-module-azure-easyauth-provider';
|
|
13
|
+
import { AzureEasyAuthResult } from '@backstage/plugin-auth-backend-module-azure-easyauth-provider';
|
|
12
14
|
import * as _backstage_plugin_auth_backend_module_oauth2_proxy_provider from '@backstage/plugin-auth-backend-module-oauth2-proxy-provider';
|
|
13
15
|
import { OAuth2ProxyResult as OAuth2ProxyResult$1 } from '@backstage/plugin-auth-backend-module-oauth2-proxy-provider';
|
|
14
16
|
import * as _backstage_plugin_auth_backend_module_oidc_provider from '@backstage/plugin-auth-backend-module-oidc-provider';
|
|
15
17
|
import { OidcAuthResult as OidcAuthResult$1 } from '@backstage/plugin-auth-backend-module-oidc-provider';
|
|
16
18
|
import * as _backstage_plugin_auth_backend_module_gcp_iap_provider from '@backstage/plugin-auth-backend-module-gcp-iap-provider';
|
|
17
19
|
import { GcpIapTokenInfo as GcpIapTokenInfo$1, GcpIapResult as GcpIapResult$1 } from '@backstage/plugin-auth-backend-module-gcp-iap-provider';
|
|
20
|
+
import * as _backstage_plugin_auth_backend_module_cloudflare_access_provider from '@backstage/plugin-auth-backend-module-cloudflare-access-provider';
|
|
18
21
|
import { UserEntity, Entity } from '@backstage/catalog-model';
|
|
19
22
|
|
|
20
23
|
/**
|
|
@@ -283,11 +286,11 @@ type StateEncoder = (req: OAuthStartRequest) => Promise<{
|
|
|
283
286
|
*/
|
|
284
287
|
type AwsAlbResult = AwsAlbResult$1;
|
|
285
288
|
|
|
286
|
-
/**
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
289
|
+
/**
|
|
290
|
+
* @public
|
|
291
|
+
* @deprecated import AzureEasyAuthResult from `@backstage/plugin-auth-backend-module-azure-easyauth-provider` instead
|
|
292
|
+
*/
|
|
293
|
+
type EasyAuthResult = AzureEasyAuthResult;
|
|
291
294
|
|
|
292
295
|
/**
|
|
293
296
|
* @public
|
|
@@ -352,7 +355,10 @@ declare const encodeState: typeof encodeOAuthState;
|
|
|
352
355
|
*/
|
|
353
356
|
declare const verifyNonce: (req: express.Request, providerId: string) => void;
|
|
354
357
|
|
|
355
|
-
/**
|
|
358
|
+
/**
|
|
359
|
+
* @public
|
|
360
|
+
* @deprecated The Bitbucket auth provider was extracted to `@backstage/plugin-auth-backend-module-bitbucket-provider`.
|
|
361
|
+
*/
|
|
356
362
|
type BitbucketOAuthResult = {
|
|
357
363
|
fullProfile: BitbucketPassportProfile;
|
|
358
364
|
params: {
|
|
@@ -363,7 +369,10 @@ type BitbucketOAuthResult = {
|
|
|
363
369
|
accessToken: string;
|
|
364
370
|
refreshToken?: string;
|
|
365
371
|
};
|
|
366
|
-
/**
|
|
372
|
+
/**
|
|
373
|
+
* @public
|
|
374
|
+
* @deprecated The Bitbucket auth provider was extracted to `@backstage/plugin-auth-backend-module-bitbucket-provider`.
|
|
375
|
+
*/
|
|
367
376
|
type BitbucketPassportProfile = Profile & {
|
|
368
377
|
id?: string;
|
|
369
378
|
displayName?: string;
|
|
@@ -398,6 +407,7 @@ type BitbucketServerOAuthResult = {
|
|
|
398
407
|
* enrich user profile for sign-in user entity
|
|
399
408
|
*
|
|
400
409
|
* @public
|
|
410
|
+
* @deprecated import from `@backstage/plugin-auth-backend-module-cloudflare-access-provider` instead
|
|
401
411
|
*/
|
|
402
412
|
type CloudflareAccessClaims = {
|
|
403
413
|
/**
|
|
@@ -440,6 +450,7 @@ type CloudflareAccessClaims = {
|
|
|
440
450
|
* CloudflareAccessGroup
|
|
441
451
|
*
|
|
442
452
|
* @public
|
|
453
|
+
* @deprecated import from `@backstage/plugin-auth-backend-module-cloudflare-access-provider` instead
|
|
443
454
|
*/
|
|
444
455
|
type CloudflareAccessGroup = {
|
|
445
456
|
/**
|
|
@@ -462,6 +473,7 @@ type CloudflareAccessGroup = {
|
|
|
462
473
|
* enrich user profile for sign-in user entity
|
|
463
474
|
*
|
|
464
475
|
* @public
|
|
476
|
+
* @deprecated import from `@backstage/plugin-auth-backend-module-cloudflare-access-provider` instead
|
|
465
477
|
*/
|
|
466
478
|
type CloudflareAccessIdentityProfile = {
|
|
467
479
|
id: string;
|
|
@@ -471,6 +483,7 @@ type CloudflareAccessIdentityProfile = {
|
|
|
471
483
|
};
|
|
472
484
|
/**
|
|
473
485
|
* @public
|
|
486
|
+
* @deprecated import from `@backstage/plugin-auth-backend-module-cloudflare-access-provider` instead
|
|
474
487
|
*/
|
|
475
488
|
type CloudflareAccessResult = {
|
|
476
489
|
claims: CloudflareAccessClaims;
|
|
@@ -565,8 +578,8 @@ declare const providers: Readonly<{
|
|
|
565
578
|
} | undefined;
|
|
566
579
|
} | undefined) => AuthProviderFactory$1;
|
|
567
580
|
resolvers: Readonly<{
|
|
568
|
-
|
|
569
|
-
|
|
581
|
+
userIdMatchingUserEntityAnnotation: () => _backstage_plugin_auth_node.SignInResolver<OAuthResult>;
|
|
582
|
+
usernameMatchingUserEntityAnnotation: () => _backstage_plugin_auth_node.SignInResolver<OAuthResult>;
|
|
570
583
|
}>;
|
|
571
584
|
}>;
|
|
572
585
|
bitbucketServer: Readonly<{
|
|
@@ -588,9 +601,7 @@ declare const providers: Readonly<{
|
|
|
588
601
|
};
|
|
589
602
|
cache?: _backstage_backend_plugin_api.CacheService | undefined;
|
|
590
603
|
}) => AuthProviderFactory$1;
|
|
591
|
-
resolvers: Readonly<
|
|
592
|
-
emailMatchingUserEntityProfileEmail: () => _backstage_plugin_auth_node.SignInResolver<unknown>;
|
|
593
|
-
}>;
|
|
604
|
+
resolvers: Readonly<typeof _backstage_plugin_auth_backend_module_cloudflare_access_provider.cloudflareAccessSignInResolvers>;
|
|
594
605
|
}>;
|
|
595
606
|
gcpIap: Readonly<{
|
|
596
607
|
create: (options: {
|
|
@@ -713,9 +724,9 @@ declare const providers: Readonly<{
|
|
|
713
724
|
}>;
|
|
714
725
|
easyAuth: Readonly<{
|
|
715
726
|
create: (options?: {
|
|
716
|
-
authHandler?: AuthHandler<
|
|
727
|
+
authHandler?: AuthHandler<_backstage_plugin_auth_backend_module_azure_easyauth_provider.AzureEasyAuthResult> | undefined;
|
|
717
728
|
signIn: {
|
|
718
|
-
resolver: _backstage_plugin_auth_node.SignInResolver<
|
|
729
|
+
resolver: _backstage_plugin_auth_node.SignInResolver<_backstage_plugin_auth_backend_module_azure_easyauth_provider.AzureEasyAuthResult>;
|
|
719
730
|
};
|
|
720
731
|
} | undefined) => AuthProviderFactory$1;
|
|
721
732
|
resolvers: never;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-auth-backend",
|
|
3
|
-
"version": "0.22.4
|
|
3
|
+
"version": "0.22.4",
|
|
4
4
|
"description": "A Backstage backend plugin that handles authentication",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "backend-plugin"
|
|
@@ -37,25 +37,28 @@
|
|
|
37
37
|
"test": "backstage-cli package test"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@backstage/backend-common": "^0.21.7
|
|
41
|
-
"@backstage/backend-plugin-api": "^0.6.17
|
|
42
|
-
"@backstage/catalog-client": "^1.6.4
|
|
40
|
+
"@backstage/backend-common": "^0.21.7",
|
|
41
|
+
"@backstage/backend-plugin-api": "^0.6.17",
|
|
42
|
+
"@backstage/catalog-client": "^1.6.4",
|
|
43
43
|
"@backstage/catalog-model": "^1.4.5",
|
|
44
44
|
"@backstage/config": "^1.2.0",
|
|
45
45
|
"@backstage/errors": "^1.2.4",
|
|
46
|
-
"@backstage/plugin-auth-backend-module-atlassian-provider": "^0.1.9
|
|
47
|
-
"@backstage/plugin-auth-backend-module-aws-alb-provider": "^0.1.9
|
|
48
|
-
"@backstage/plugin-auth-backend-module-
|
|
49
|
-
"@backstage/plugin-auth-backend-module-
|
|
50
|
-
"@backstage/plugin-auth-backend-module-
|
|
51
|
-
"@backstage/plugin-auth-backend-module-
|
|
52
|
-
"@backstage/plugin-auth-backend-module-
|
|
53
|
-
"@backstage/plugin-auth-backend-module-
|
|
54
|
-
"@backstage/plugin-auth-backend-module-
|
|
55
|
-
"@backstage/plugin-auth-backend-module-
|
|
56
|
-
"@backstage/plugin-auth-backend-module-
|
|
57
|
-
"@backstage/plugin-auth-
|
|
58
|
-
"@backstage/plugin-
|
|
46
|
+
"@backstage/plugin-auth-backend-module-atlassian-provider": "^0.1.9",
|
|
47
|
+
"@backstage/plugin-auth-backend-module-aws-alb-provider": "^0.1.9",
|
|
48
|
+
"@backstage/plugin-auth-backend-module-azure-easyauth-provider": "^0.1.0",
|
|
49
|
+
"@backstage/plugin-auth-backend-module-bitbucket-provider": "^0.1.0",
|
|
50
|
+
"@backstage/plugin-auth-backend-module-cloudflare-access-provider": "^0.1.0",
|
|
51
|
+
"@backstage/plugin-auth-backend-module-gcp-iap-provider": "^0.2.12",
|
|
52
|
+
"@backstage/plugin-auth-backend-module-github-provider": "^0.1.14",
|
|
53
|
+
"@backstage/plugin-auth-backend-module-gitlab-provider": "^0.1.14",
|
|
54
|
+
"@backstage/plugin-auth-backend-module-google-provider": "^0.1.14",
|
|
55
|
+
"@backstage/plugin-auth-backend-module-microsoft-provider": "^0.1.12",
|
|
56
|
+
"@backstage/plugin-auth-backend-module-oauth2-provider": "^0.1.14",
|
|
57
|
+
"@backstage/plugin-auth-backend-module-oauth2-proxy-provider": "^0.1.10",
|
|
58
|
+
"@backstage/plugin-auth-backend-module-oidc-provider": "^0.1.8",
|
|
59
|
+
"@backstage/plugin-auth-backend-module-okta-provider": "^0.0.10",
|
|
60
|
+
"@backstage/plugin-auth-node": "^0.4.12",
|
|
61
|
+
"@backstage/plugin-catalog-node": "^1.11.1",
|
|
59
62
|
"@backstage/types": "^1.1.1",
|
|
60
63
|
"@google-cloud/firestore": "^7.0.0",
|
|
61
64
|
"@node-saml/passport-saml": "^4.0.4",
|
|
@@ -81,7 +84,6 @@
|
|
|
81
84
|
"openid-client": "^5.2.1",
|
|
82
85
|
"passport": "^0.7.0",
|
|
83
86
|
"passport-auth0": "^1.4.3",
|
|
84
|
-
"passport-bitbucket-oauth2": "^0.1.2",
|
|
85
87
|
"passport-github2": "^0.1.12",
|
|
86
88
|
"passport-google-oauth20": "^2.0.0",
|
|
87
89
|
"passport-microsoft": "^1.0.0",
|
|
@@ -92,9 +94,9 @@
|
|
|
92
94
|
"yn": "^4.0.0"
|
|
93
95
|
},
|
|
94
96
|
"devDependencies": {
|
|
95
|
-
"@backstage/backend-defaults": "^0.2.17
|
|
96
|
-
"@backstage/backend-test-utils": "^0.3.7
|
|
97
|
-
"@backstage/cli": "^0.26.3
|
|
97
|
+
"@backstage/backend-defaults": "^0.2.17",
|
|
98
|
+
"@backstage/backend-test-utils": "^0.3.7",
|
|
99
|
+
"@backstage/cli": "^0.26.3",
|
|
98
100
|
"@types/body-parser": "^1.19.0",
|
|
99
101
|
"@types/cookie-parser": "^1.4.2",
|
|
100
102
|
"@types/express-session": "^1.17.2",
|