@backstage/plugin-auth-backend 0.24.4-next.1 → 0.24.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 +88 -0
- package/dist/index.d.ts +34 -41
- package/dist/providers/azure-easyauth/provider.cjs.js.map +1 -1
- package/package.json +30 -37
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,93 @@
|
|
|
1
1
|
# @backstage/plugin-auth-backend
|
|
2
2
|
|
|
3
|
+
## 0.24.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7956beb: Marked the remaining exports related to `createRouter` and the old backend system as deprecated.
|
|
8
|
+
|
|
9
|
+
For more information about migrating to the new backend system, see the [migration guide](https://backstage.io/docs/backend-system/building-backends/migrating#the-auth-plugin).
|
|
10
|
+
|
|
11
|
+
Support for the old backend system will be removed in the next release of this plugin.
|
|
12
|
+
|
|
13
|
+
- b6702ea: Deprecated `getDefaultOwnershipEntityRefs` in favor of the new `.resolveOwnershipEntityRefs(...)` method in the `AuthResolverContext`.
|
|
14
|
+
|
|
15
|
+
The following code in a custom sign-in resolver:
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
import { getDefaultOwnershipEntityRefs } from '@backstage/plugin-auth-backend';
|
|
19
|
+
|
|
20
|
+
// ...
|
|
21
|
+
|
|
22
|
+
const ent = getDefaultOwnershipEntityRefs(entity);
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Can be replaced with the following:
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
const { ownershipEntityRefs: ent } = await ctx.resolveOwnershipEntityRefs(
|
|
29
|
+
entity,
|
|
30
|
+
);
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
- Updated dependencies
|
|
34
|
+
- @backstage/plugin-auth-node@0.6.1
|
|
35
|
+
- @backstage/plugin-auth-backend-module-microsoft-provider@0.3.1
|
|
36
|
+
- @backstage/plugin-auth-backend-module-oauth2-provider@0.4.1
|
|
37
|
+
- @backstage/plugin-auth-backend-module-oidc-provider@0.4.1
|
|
38
|
+
- @backstage/plugin-auth-backend-module-okta-provider@0.2.1
|
|
39
|
+
- @backstage/backend-plugin-api@1.2.1
|
|
40
|
+
- @backstage/catalog-client@1.9.1
|
|
41
|
+
- @backstage/catalog-model@1.7.3
|
|
42
|
+
- @backstage/config@1.3.2
|
|
43
|
+
- @backstage/errors@1.2.7
|
|
44
|
+
- @backstage/types@1.2.1
|
|
45
|
+
- @backstage/plugin-auth-backend-module-atlassian-provider@0.4.1
|
|
46
|
+
- @backstage/plugin-auth-backend-module-auth0-provider@0.2.1
|
|
47
|
+
- @backstage/plugin-auth-backend-module-aws-alb-provider@0.4.1
|
|
48
|
+
- @backstage/plugin-auth-backend-module-azure-easyauth-provider@0.2.6
|
|
49
|
+
- @backstage/plugin-auth-backend-module-bitbucket-provider@0.3.1
|
|
50
|
+
- @backstage/plugin-auth-backend-module-bitbucket-server-provider@0.2.1
|
|
51
|
+
- @backstage/plugin-auth-backend-module-cloudflare-access-provider@0.4.1
|
|
52
|
+
- @backstage/plugin-auth-backend-module-gcp-iap-provider@0.4.1
|
|
53
|
+
- @backstage/plugin-auth-backend-module-github-provider@0.3.1
|
|
54
|
+
- @backstage/plugin-auth-backend-module-gitlab-provider@0.3.1
|
|
55
|
+
- @backstage/plugin-auth-backend-module-google-provider@0.3.1
|
|
56
|
+
- @backstage/plugin-auth-backend-module-oauth2-proxy-provider@0.2.6
|
|
57
|
+
- @backstage/plugin-auth-backend-module-onelogin-provider@0.3.1
|
|
58
|
+
- @backstage/plugin-catalog-node@1.16.1
|
|
59
|
+
|
|
60
|
+
## 0.24.4-next.2
|
|
61
|
+
|
|
62
|
+
### Patch Changes
|
|
63
|
+
|
|
64
|
+
- Updated dependencies
|
|
65
|
+
- @backstage/plugin-auth-backend-module-oauth2-provider@0.4.1-next.2
|
|
66
|
+
- @backstage/plugin-auth-backend-module-oidc-provider@0.4.1-next.2
|
|
67
|
+
- @backstage/plugin-auth-backend-module-okta-provider@0.2.1-next.2
|
|
68
|
+
- @backstage/backend-plugin-api@1.2.1-next.1
|
|
69
|
+
- @backstage/catalog-client@1.9.1
|
|
70
|
+
- @backstage/catalog-model@1.7.3
|
|
71
|
+
- @backstage/config@1.3.2
|
|
72
|
+
- @backstage/errors@1.2.7
|
|
73
|
+
- @backstage/types@1.2.1
|
|
74
|
+
- @backstage/plugin-auth-backend-module-atlassian-provider@0.4.1-next.1
|
|
75
|
+
- @backstage/plugin-auth-backend-module-auth0-provider@0.2.1-next.1
|
|
76
|
+
- @backstage/plugin-auth-backend-module-aws-alb-provider@0.4.1-next.2
|
|
77
|
+
- @backstage/plugin-auth-backend-module-azure-easyauth-provider@0.2.6-next.1
|
|
78
|
+
- @backstage/plugin-auth-backend-module-bitbucket-provider@0.3.1-next.1
|
|
79
|
+
- @backstage/plugin-auth-backend-module-bitbucket-server-provider@0.2.1-next.1
|
|
80
|
+
- @backstage/plugin-auth-backend-module-cloudflare-access-provider@0.4.1-next.1
|
|
81
|
+
- @backstage/plugin-auth-backend-module-gcp-iap-provider@0.4.1-next.1
|
|
82
|
+
- @backstage/plugin-auth-backend-module-github-provider@0.3.1-next.1
|
|
83
|
+
- @backstage/plugin-auth-backend-module-gitlab-provider@0.3.1-next.1
|
|
84
|
+
- @backstage/plugin-auth-backend-module-google-provider@0.3.1-next.1
|
|
85
|
+
- @backstage/plugin-auth-backend-module-microsoft-provider@0.3.1-next.1
|
|
86
|
+
- @backstage/plugin-auth-backend-module-oauth2-proxy-provider@0.2.6-next.1
|
|
87
|
+
- @backstage/plugin-auth-backend-module-onelogin-provider@0.3.1-next.1
|
|
88
|
+
- @backstage/plugin-auth-node@0.6.1-next.1
|
|
89
|
+
- @backstage/plugin-catalog-node@1.16.1-next.1
|
|
90
|
+
|
|
3
91
|
## 0.24.4-next.1
|
|
4
92
|
|
|
5
93
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -15,7 +15,6 @@ import * as _backstage_plugin_auth_backend_module_oauth2_proxy_provider from '@b
|
|
|
15
15
|
import { OAuth2ProxyResult as OAuth2ProxyResult$1 } from '@backstage/plugin-auth-backend-module-oauth2-proxy-provider';
|
|
16
16
|
import * as _backstage_plugin_auth_backend_module_oidc_provider from '@backstage/plugin-auth-backend-module-oidc-provider';
|
|
17
17
|
import { OidcAuthResult as OidcAuthResult$1 } from '@backstage/plugin-auth-backend-module-oidc-provider';
|
|
18
|
-
import * as _backstage_plugin_auth_backend_module_gcp_iap_provider from '@backstage/plugin-auth-backend-module-gcp-iap-provider';
|
|
19
18
|
import { GcpIapTokenInfo as GcpIapTokenInfo$1, GcpIapResult as GcpIapResult$1 } from '@backstage/plugin-auth-backend-module-gcp-iap-provider';
|
|
20
19
|
import * as _backstage_plugin_auth_backend_module_cloudflare_access_provider from '@backstage/plugin-auth-backend-module-cloudflare-access-provider';
|
|
21
20
|
import { UserEntity, Entity } from '@backstage/catalog-model';
|
|
@@ -568,31 +567,25 @@ type GcpIapResult = GcpIapResult$1;
|
|
|
568
567
|
declare const providers: Readonly<{
|
|
569
568
|
atlassian: Readonly<{
|
|
570
569
|
create: (options?: {
|
|
571
|
-
|
|
572
|
-
* All built-in auth provider integrations.
|
|
573
|
-
*
|
|
574
|
-
* @public
|
|
575
|
-
* @deprecated Migrate the auth plugin to the new backend system https://backstage.io/docs/backend-system/building-backends/migrating#the-auth-plugin
|
|
576
|
-
*/
|
|
577
|
-
authHandler?: AuthHandler<OAuthResult> | undefined;
|
|
570
|
+
authHandler?: AuthHandler<OAuthResult>;
|
|
578
571
|
signIn?: {
|
|
579
572
|
resolver: _backstage_plugin_auth_node.SignInResolver<OAuthResult>;
|
|
580
|
-
}
|
|
573
|
+
};
|
|
581
574
|
} | undefined) => AuthProviderFactory$1;
|
|
582
575
|
resolvers: never;
|
|
583
576
|
}>;
|
|
584
577
|
auth0: Readonly<{
|
|
585
578
|
create: (options?: {
|
|
586
|
-
authHandler?: AuthHandler<OAuthResult
|
|
579
|
+
authHandler?: AuthHandler<OAuthResult>;
|
|
587
580
|
signIn?: {
|
|
588
581
|
resolver: _backstage_plugin_auth_node.SignInResolver<OAuthResult>;
|
|
589
|
-
}
|
|
582
|
+
};
|
|
590
583
|
} | undefined) => AuthProviderFactory$1;
|
|
591
584
|
resolvers: never;
|
|
592
585
|
}>;
|
|
593
586
|
awsAlb: Readonly<{
|
|
594
587
|
create: (options?: {
|
|
595
|
-
authHandler?: AuthHandler<_backstage_plugin_auth_backend_module_aws_alb_provider.AwsAlbResult
|
|
588
|
+
authHandler?: AuthHandler<_backstage_plugin_auth_backend_module_aws_alb_provider.AwsAlbResult>;
|
|
596
589
|
signIn: {
|
|
597
590
|
resolver: _backstage_plugin_auth_node.SignInResolver<_backstage_plugin_auth_backend_module_aws_alb_provider.AwsAlbResult>;
|
|
598
591
|
};
|
|
@@ -601,10 +594,10 @@ declare const providers: Readonly<{
|
|
|
601
594
|
}>;
|
|
602
595
|
bitbucket: Readonly<{
|
|
603
596
|
create: (options?: {
|
|
604
|
-
authHandler?: AuthHandler<OAuthResult
|
|
597
|
+
authHandler?: AuthHandler<OAuthResult>;
|
|
605
598
|
signIn?: {
|
|
606
599
|
resolver: _backstage_plugin_auth_node.SignInResolver<OAuthResult>;
|
|
607
|
-
}
|
|
600
|
+
};
|
|
608
601
|
} | undefined) => AuthProviderFactory$1;
|
|
609
602
|
resolvers: Readonly<{
|
|
610
603
|
userIdMatchingUserEntityAnnotation: () => _backstage_plugin_auth_node.SignInResolver<OAuthResult>;
|
|
@@ -613,10 +606,10 @@ declare const providers: Readonly<{
|
|
|
613
606
|
}>;
|
|
614
607
|
bitbucketServer: Readonly<{
|
|
615
608
|
create: (options?: {
|
|
616
|
-
authHandler?: AuthHandler<BitbucketServerOAuthResult
|
|
609
|
+
authHandler?: AuthHandler<BitbucketServerOAuthResult>;
|
|
617
610
|
signIn?: {
|
|
618
611
|
resolver: _backstage_plugin_auth_node.SignInResolver<BitbucketServerOAuthResult>;
|
|
619
|
-
}
|
|
612
|
+
};
|
|
620
613
|
} | undefined) => AuthProviderFactory$1;
|
|
621
614
|
resolvers: Readonly<{
|
|
622
615
|
emailMatchingUserEntityProfileEmail: () => _backstage_plugin_auth_node.SignInResolver<BitbucketServerOAuthResult>;
|
|
@@ -624,30 +617,30 @@ declare const providers: Readonly<{
|
|
|
624
617
|
}>;
|
|
625
618
|
cfAccess: Readonly<{
|
|
626
619
|
create: (options: {
|
|
627
|
-
authHandler?: AuthHandler<CloudflareAccessResult
|
|
620
|
+
authHandler?: AuthHandler<CloudflareAccessResult>;
|
|
628
621
|
signIn: {
|
|
629
622
|
resolver: _backstage_plugin_auth_node.SignInResolver<CloudflareAccessResult>;
|
|
630
623
|
};
|
|
631
|
-
cache?: _backstage_backend_plugin_api.CacheService
|
|
624
|
+
cache?: _backstage_backend_plugin_api.CacheService;
|
|
632
625
|
}) => AuthProviderFactory$1;
|
|
633
626
|
resolvers: Readonly<typeof _backstage_plugin_auth_backend_module_cloudflare_access_provider.cloudflareAccessSignInResolvers>;
|
|
634
627
|
}>;
|
|
635
628
|
gcpIap: Readonly<{
|
|
636
629
|
create: (options: {
|
|
637
|
-
authHandler?: AuthHandler<
|
|
630
|
+
authHandler?: AuthHandler<GcpIapResult>;
|
|
638
631
|
signIn: {
|
|
639
|
-
resolver: _backstage_plugin_auth_node.SignInResolver<
|
|
632
|
+
resolver: _backstage_plugin_auth_node.SignInResolver<GcpIapResult>;
|
|
640
633
|
};
|
|
641
634
|
}) => AuthProviderFactory$1;
|
|
642
635
|
resolvers: never;
|
|
643
636
|
}>;
|
|
644
637
|
github: Readonly<{
|
|
645
638
|
create: (options?: {
|
|
646
|
-
authHandler?: AuthHandler<GithubOAuthResult
|
|
639
|
+
authHandler?: AuthHandler<GithubOAuthResult>;
|
|
647
640
|
signIn?: {
|
|
648
641
|
resolver: _backstage_plugin_auth_node.SignInResolver<GithubOAuthResult>;
|
|
649
|
-
}
|
|
650
|
-
stateEncoder?: StateEncoder
|
|
642
|
+
};
|
|
643
|
+
stateEncoder?: StateEncoder;
|
|
651
644
|
} | undefined) => AuthProviderFactory$1;
|
|
652
645
|
resolvers: Readonly<{
|
|
653
646
|
usernameMatchingUserEntityName: () => _backstage_plugin_auth_node.SignInResolver<GithubOAuthResult>;
|
|
@@ -655,19 +648,19 @@ declare const providers: Readonly<{
|
|
|
655
648
|
}>;
|
|
656
649
|
gitlab: Readonly<{
|
|
657
650
|
create: (options?: {
|
|
658
|
-
authHandler?: AuthHandler<OAuthResult
|
|
651
|
+
authHandler?: AuthHandler<OAuthResult>;
|
|
659
652
|
signIn?: {
|
|
660
653
|
resolver: _backstage_plugin_auth_node.SignInResolver<OAuthResult>;
|
|
661
|
-
}
|
|
654
|
+
};
|
|
662
655
|
} | undefined) => AuthProviderFactory$1;
|
|
663
656
|
resolvers: never;
|
|
664
657
|
}>;
|
|
665
658
|
google: Readonly<{
|
|
666
659
|
create: (options?: {
|
|
667
|
-
authHandler?: AuthHandler<OAuthResult
|
|
660
|
+
authHandler?: AuthHandler<OAuthResult>;
|
|
668
661
|
signIn?: {
|
|
669
662
|
resolver: _backstage_plugin_auth_node.SignInResolver<OAuthResult>;
|
|
670
|
-
}
|
|
663
|
+
};
|
|
671
664
|
} | undefined) => AuthProviderFactory$1;
|
|
672
665
|
resolvers: Readonly<{
|
|
673
666
|
emailMatchingUserEntityProfileEmail: () => _backstage_plugin_auth_node.SignInResolver<OAuthResult>;
|
|
@@ -677,10 +670,10 @@ declare const providers: Readonly<{
|
|
|
677
670
|
}>;
|
|
678
671
|
microsoft: Readonly<{
|
|
679
672
|
create: (options?: {
|
|
680
|
-
authHandler?: AuthHandler<OAuthResult
|
|
673
|
+
authHandler?: AuthHandler<OAuthResult>;
|
|
681
674
|
signIn?: {
|
|
682
675
|
resolver: _backstage_plugin_auth_node.SignInResolver<OAuthResult>;
|
|
683
|
-
}
|
|
676
|
+
};
|
|
684
677
|
} | undefined) => AuthProviderFactory$1;
|
|
685
678
|
resolvers: Readonly<{
|
|
686
679
|
emailMatchingUserEntityProfileEmail: () => _backstage_plugin_auth_node.SignInResolver<OAuthResult>;
|
|
@@ -691,16 +684,16 @@ declare const providers: Readonly<{
|
|
|
691
684
|
}>;
|
|
692
685
|
oauth2: Readonly<{
|
|
693
686
|
create: (options?: {
|
|
694
|
-
authHandler?: AuthHandler<OAuthResult
|
|
687
|
+
authHandler?: AuthHandler<OAuthResult>;
|
|
695
688
|
signIn?: {
|
|
696
689
|
resolver: _backstage_plugin_auth_node.SignInResolver<OAuthResult>;
|
|
697
|
-
}
|
|
690
|
+
};
|
|
698
691
|
} | undefined) => AuthProviderFactory$1;
|
|
699
692
|
resolvers: never;
|
|
700
693
|
}>;
|
|
701
694
|
oauth2Proxy: Readonly<{
|
|
702
695
|
create: (options: {
|
|
703
|
-
authHandler?: AuthHandler<_backstage_plugin_auth_backend_module_oauth2_proxy_provider.OAuth2ProxyResult
|
|
696
|
+
authHandler?: AuthHandler<_backstage_plugin_auth_backend_module_oauth2_proxy_provider.OAuth2ProxyResult>;
|
|
704
697
|
signIn: {
|
|
705
698
|
resolver: _backstage_plugin_auth_node.SignInResolver<_backstage_plugin_auth_backend_module_oauth2_proxy_provider.OAuth2ProxyResult>;
|
|
706
699
|
};
|
|
@@ -709,10 +702,10 @@ declare const providers: Readonly<{
|
|
|
709
702
|
}>;
|
|
710
703
|
oidc: Readonly<{
|
|
711
704
|
create: (options?: {
|
|
712
|
-
authHandler?: AuthHandler<_backstage_plugin_auth_backend_module_oidc_provider.OidcAuthResult
|
|
705
|
+
authHandler?: AuthHandler<_backstage_plugin_auth_backend_module_oidc_provider.OidcAuthResult>;
|
|
713
706
|
signIn?: {
|
|
714
707
|
resolver: _backstage_plugin_auth_node.SignInResolver<_backstage_plugin_auth_backend_module_oidc_provider.OidcAuthResult>;
|
|
715
|
-
}
|
|
708
|
+
};
|
|
716
709
|
} | undefined) => AuthProviderFactory$1;
|
|
717
710
|
resolvers: Readonly<{
|
|
718
711
|
emailLocalPartMatchingUserEntityName: () => _backstage_plugin_auth_node.SignInResolver<unknown>;
|
|
@@ -721,10 +714,10 @@ declare const providers: Readonly<{
|
|
|
721
714
|
}>;
|
|
722
715
|
okta: Readonly<{
|
|
723
716
|
create: (options?: {
|
|
724
|
-
authHandler?: AuthHandler<OAuthResult
|
|
717
|
+
authHandler?: AuthHandler<OAuthResult>;
|
|
725
718
|
signIn?: {
|
|
726
719
|
resolver: _backstage_plugin_auth_node.SignInResolver<OAuthResult>;
|
|
727
|
-
}
|
|
720
|
+
};
|
|
728
721
|
} | undefined) => AuthProviderFactory$1;
|
|
729
722
|
resolvers: Readonly<{
|
|
730
723
|
emailLocalPartMatchingUserEntityName: () => _backstage_plugin_auth_node.SignInResolver<unknown>;
|
|
@@ -734,19 +727,19 @@ declare const providers: Readonly<{
|
|
|
734
727
|
}>;
|
|
735
728
|
onelogin: Readonly<{
|
|
736
729
|
create: (options?: {
|
|
737
|
-
authHandler?: AuthHandler<OAuthResult
|
|
730
|
+
authHandler?: AuthHandler<OAuthResult>;
|
|
738
731
|
signIn?: {
|
|
739
732
|
resolver: _backstage_plugin_auth_node.SignInResolver<OAuthResult>;
|
|
740
|
-
}
|
|
733
|
+
};
|
|
741
734
|
} | undefined) => AuthProviderFactory$1;
|
|
742
735
|
resolvers: never;
|
|
743
736
|
}>;
|
|
744
737
|
saml: Readonly<{
|
|
745
738
|
create: (options?: {
|
|
746
|
-
authHandler?: AuthHandler<SamlAuthResult
|
|
739
|
+
authHandler?: AuthHandler<SamlAuthResult>;
|
|
747
740
|
signIn?: {
|
|
748
741
|
resolver: _backstage_plugin_auth_node.SignInResolver<SamlAuthResult>;
|
|
749
|
-
}
|
|
742
|
+
};
|
|
750
743
|
} | undefined) => AuthProviderFactory$1;
|
|
751
744
|
resolvers: Readonly<{
|
|
752
745
|
nameIdMatchingUserEntityName(): _backstage_plugin_auth_node.SignInResolver<SamlAuthResult>;
|
|
@@ -754,7 +747,7 @@ declare const providers: Readonly<{
|
|
|
754
747
|
}>;
|
|
755
748
|
easyAuth: Readonly<{
|
|
756
749
|
create: (options?: {
|
|
757
|
-
authHandler?: AuthHandler<_backstage_plugin_auth_backend_module_azure_easyauth_provider.AzureEasyAuthResult
|
|
750
|
+
authHandler?: AuthHandler<_backstage_plugin_auth_backend_module_azure_easyauth_provider.AzureEasyAuthResult>;
|
|
758
751
|
signIn: {
|
|
759
752
|
resolver: _backstage_plugin_auth_node.SignInResolver<_backstage_plugin_auth_backend_module_azure_easyauth_provider.AzureEasyAuthResult>;
|
|
760
753
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.cjs.js","sources":["../../../src/providers/azure-easyauth/provider.ts"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n SignInResolver,\n createProxyAuthProviderFactory,\n} from '@backstage/plugin-auth-node';\nimport { AuthHandler } from '../types';\nimport { createAuthProviderIntegration } from '../createAuthProviderIntegration';\nimport {\n AzureEasyAuthResult,\n azureEasyAuthAuthenticator,\n} from '@backstage/plugin-auth-backend-module-azure-easyauth-provider';\n\
|
|
1
|
+
{"version":3,"file":"provider.cjs.js","sources":["../../../src/providers/azure-easyauth/provider.ts"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n SignInResolver,\n createProxyAuthProviderFactory,\n} from '@backstage/plugin-auth-node';\nimport { AuthHandler } from '../types';\nimport { createAuthProviderIntegration } from '../createAuthProviderIntegration';\nimport {\n AzureEasyAuthResult,\n azureEasyAuthAuthenticator,\n} from '@backstage/plugin-auth-backend-module-azure-easyauth-provider';\n\n/**\n * Auth provider integration for Azure EasyAuth\n *\n * @public\n * @deprecated Migrate the auth plugin to the new backend system https://backstage.io/docs/backend-system/building-backends/migrating#the-auth-plugin\n */\nexport const easyAuth = createAuthProviderIntegration({\n create(options?: {\n /**\n * The profile transformation function used to verify and convert the auth response\n * into the profile that will be presented to the user.\n */\n authHandler?: AuthHandler<AzureEasyAuthResult>;\n\n /**\n * Configure sign-in for this provider, without it the provider can not be used to sign users in.\n */\n signIn: {\n /**\n * Maps an auth result to a Backstage identity for the user.\n */\n resolver: SignInResolver<AzureEasyAuthResult>;\n };\n }) {\n return createProxyAuthProviderFactory({\n authenticator: azureEasyAuthAuthenticator,\n profileTransform: options?.authHandler,\n signInResolver: options?.signIn?.resolver,\n });\n },\n});\n"],"names":["createAuthProviderIntegration","createProxyAuthProviderFactory","azureEasyAuthAuthenticator"],"mappings":";;;;;;AAiCO,MAAM,WAAWA,2DAA8B,CAAA;AAAA,EACpD,OAAO,OAgBJ,EAAA;AACD,IAAA,OAAOC,6CAA+B,CAAA;AAAA,MACpC,aAAe,EAAAC,uEAAA;AAAA,MACf,kBAAkB,OAAS,EAAA,WAAA;AAAA,MAC3B,cAAA,EAAgB,SAAS,MAAQ,EAAA;AAAA,KAClC,CAAA;AAAA;AAEL,CAAC;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-auth-backend",
|
|
3
|
-
"version": "0.24.4
|
|
3
|
+
"version": "0.24.4",
|
|
4
4
|
"description": "A Backstage backend plugin that handles authentication",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "backend-plugin",
|
|
@@ -47,31 +47,31 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@backstage/backend-common": "^0.25.0",
|
|
50
|
-
"@backstage/backend-plugin-api": "1.2.1
|
|
51
|
-
"@backstage/catalog-client": "1.9.1",
|
|
52
|
-
"@backstage/catalog-model": "1.7.3",
|
|
53
|
-
"@backstage/config": "1.3.2",
|
|
54
|
-
"@backstage/errors": "1.2.7",
|
|
55
|
-
"@backstage/plugin-auth-backend-module-atlassian-provider": "0.4.1
|
|
56
|
-
"@backstage/plugin-auth-backend-module-auth0-provider": "0.2.1
|
|
57
|
-
"@backstage/plugin-auth-backend-module-aws-alb-provider": "0.4.1
|
|
58
|
-
"@backstage/plugin-auth-backend-module-azure-easyauth-provider": "0.2.6
|
|
59
|
-
"@backstage/plugin-auth-backend-module-bitbucket-provider": "0.3.1
|
|
60
|
-
"@backstage/plugin-auth-backend-module-bitbucket-server-provider": "0.2.1
|
|
61
|
-
"@backstage/plugin-auth-backend-module-cloudflare-access-provider": "0.4.1
|
|
62
|
-
"@backstage/plugin-auth-backend-module-gcp-iap-provider": "0.4.1
|
|
63
|
-
"@backstage/plugin-auth-backend-module-github-provider": "0.3.1
|
|
64
|
-
"@backstage/plugin-auth-backend-module-gitlab-provider": "0.3.1
|
|
65
|
-
"@backstage/plugin-auth-backend-module-google-provider": "0.3.1
|
|
66
|
-
"@backstage/plugin-auth-backend-module-microsoft-provider": "0.3.1
|
|
67
|
-
"@backstage/plugin-auth-backend-module-oauth2-provider": "0.4.1
|
|
68
|
-
"@backstage/plugin-auth-backend-module-oauth2-proxy-provider": "0.2.6
|
|
69
|
-
"@backstage/plugin-auth-backend-module-oidc-provider": "0.4.1
|
|
70
|
-
"@backstage/plugin-auth-backend-module-okta-provider": "0.2.1
|
|
71
|
-
"@backstage/plugin-auth-backend-module-onelogin-provider": "0.3.1
|
|
72
|
-
"@backstage/plugin-auth-node": "0.6.1
|
|
73
|
-
"@backstage/plugin-catalog-node": "1.16.1
|
|
74
|
-
"@backstage/types": "1.2.1",
|
|
50
|
+
"@backstage/backend-plugin-api": "^1.2.1",
|
|
51
|
+
"@backstage/catalog-client": "^1.9.1",
|
|
52
|
+
"@backstage/catalog-model": "^1.7.3",
|
|
53
|
+
"@backstage/config": "^1.3.2",
|
|
54
|
+
"@backstage/errors": "^1.2.7",
|
|
55
|
+
"@backstage/plugin-auth-backend-module-atlassian-provider": "^0.4.1",
|
|
56
|
+
"@backstage/plugin-auth-backend-module-auth0-provider": "^0.2.1",
|
|
57
|
+
"@backstage/plugin-auth-backend-module-aws-alb-provider": "^0.4.1",
|
|
58
|
+
"@backstage/plugin-auth-backend-module-azure-easyauth-provider": "^0.2.6",
|
|
59
|
+
"@backstage/plugin-auth-backend-module-bitbucket-provider": "^0.3.1",
|
|
60
|
+
"@backstage/plugin-auth-backend-module-bitbucket-server-provider": "^0.2.1",
|
|
61
|
+
"@backstage/plugin-auth-backend-module-cloudflare-access-provider": "^0.4.1",
|
|
62
|
+
"@backstage/plugin-auth-backend-module-gcp-iap-provider": "^0.4.1",
|
|
63
|
+
"@backstage/plugin-auth-backend-module-github-provider": "^0.3.1",
|
|
64
|
+
"@backstage/plugin-auth-backend-module-gitlab-provider": "^0.3.1",
|
|
65
|
+
"@backstage/plugin-auth-backend-module-google-provider": "^0.3.1",
|
|
66
|
+
"@backstage/plugin-auth-backend-module-microsoft-provider": "^0.3.1",
|
|
67
|
+
"@backstage/plugin-auth-backend-module-oauth2-provider": "^0.4.1",
|
|
68
|
+
"@backstage/plugin-auth-backend-module-oauth2-proxy-provider": "^0.2.6",
|
|
69
|
+
"@backstage/plugin-auth-backend-module-oidc-provider": "^0.4.1",
|
|
70
|
+
"@backstage/plugin-auth-backend-module-okta-provider": "^0.2.1",
|
|
71
|
+
"@backstage/plugin-auth-backend-module-onelogin-provider": "^0.3.1",
|
|
72
|
+
"@backstage/plugin-auth-node": "^0.6.1",
|
|
73
|
+
"@backstage/plugin-catalog-node": "^1.16.1",
|
|
74
|
+
"@backstage/types": "^1.2.1",
|
|
75
75
|
"@google-cloud/firestore": "^7.0.0",
|
|
76
76
|
"@node-saml/passport-saml": "^5.0.0",
|
|
77
77
|
"@types/express": "^4.17.6",
|
|
@@ -105,9 +105,9 @@
|
|
|
105
105
|
"yn": "^4.0.0"
|
|
106
106
|
},
|
|
107
107
|
"devDependencies": {
|
|
108
|
-
"@backstage/backend-defaults": "0.8.2
|
|
109
|
-
"@backstage/backend-test-utils": "1.3.1
|
|
110
|
-
"@backstage/cli": "0.
|
|
108
|
+
"@backstage/backend-defaults": "^0.8.2",
|
|
109
|
+
"@backstage/backend-test-utils": "^1.3.1",
|
|
110
|
+
"@backstage/cli": "^0.31.0",
|
|
111
111
|
"@types/body-parser": "^1.19.0",
|
|
112
112
|
"@types/cookie-parser": "^1.4.2",
|
|
113
113
|
"@types/express-session": "^1.17.2",
|
|
@@ -121,12 +121,5 @@
|
|
|
121
121
|
"msw": "^1.0.0",
|
|
122
122
|
"supertest": "^7.0.0"
|
|
123
123
|
},
|
|
124
|
-
"configSchema": "config.d.ts"
|
|
125
|
-
"typesVersions": {
|
|
126
|
-
"*": {
|
|
127
|
-
"index": [
|
|
128
|
-
"dist/index.d.ts"
|
|
129
|
-
]
|
|
130
|
-
}
|
|
131
|
-
}
|
|
124
|
+
"configSchema": "config.d.ts"
|
|
132
125
|
}
|