@backstage/plugin-auth-backend 0.22.10-next.3 → 0.22.11
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 +51 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +14 -8
- package/package.json +25 -25
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api';
|
|
2
|
-
import { LoggerService,
|
|
2
|
+
import { LoggerService, DatabaseService, RootConfigService, DiscoveryService, TokenManagerService, AuthService, HttpAuthService } from '@backstage/backend-plugin-api';
|
|
3
3
|
import express from 'express';
|
|
4
4
|
import * as _backstage_plugin_auth_node from '@backstage/plugin-auth-node';
|
|
5
5
|
import { TokenParams as TokenParams$1, AuthProviderFactory as AuthProviderFactory$1, AuthOwnershipResolver, ProfileInfo as ProfileInfo$1, BackstageSignInResult, OAuthState as OAuthState$1, AuthResolverCatalogUserQuery as AuthResolverCatalogUserQuery$1, AuthResolverContext as AuthResolverContext$1, CookieConfigurer as CookieConfigurer$1, AuthProviderConfig as AuthProviderConfig$1, AuthProviderRouteHandlers as AuthProviderRouteHandlers$1, ClientAuthResponse, SignInInfo as SignInInfo$1, SignInResolver as SignInResolver$1, OAuthEnvironmentHandler as OAuthEnvironmentHandler$1, decodeOAuthState, encodeOAuthState, prepareBackstageIdentityResponse as prepareBackstageIdentityResponse$1, WebMessageResponse as WebMessageResponse$1 } from '@backstage/plugin-auth-node';
|
|
6
|
-
import { PluginDatabaseManager, PluginEndpointDiscovery, TokenManager } from '@backstage/backend-common';
|
|
7
6
|
import { CatalogApi } from '@backstage/catalog-client';
|
|
8
7
|
import { Config } from '@backstage/config';
|
|
9
8
|
import { Profile } from 'passport';
|
|
@@ -19,6 +18,7 @@ import * as _backstage_plugin_auth_backend_module_gcp_iap_provider from '@backst
|
|
|
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';
|
|
21
|
+
import { TokenManager } from '@backstage/backend-common';
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* Auth plugin
|
|
@@ -40,13 +40,16 @@ type ProviderFactories = {
|
|
|
40
40
|
/** @public */
|
|
41
41
|
declare function createOriginFilter(config: Config): (origin: string) => boolean;
|
|
42
42
|
|
|
43
|
-
/**
|
|
43
|
+
/**
|
|
44
|
+
* @public
|
|
45
|
+
* @deprecated Please migrate to the new backend system as this will be removed in the future.
|
|
46
|
+
*/
|
|
44
47
|
interface RouterOptions {
|
|
45
48
|
logger: LoggerService;
|
|
46
|
-
database:
|
|
47
|
-
config:
|
|
48
|
-
discovery:
|
|
49
|
-
tokenManager:
|
|
49
|
+
database: DatabaseService;
|
|
50
|
+
config: RootConfigService;
|
|
51
|
+
discovery: DiscoveryService;
|
|
52
|
+
tokenManager: TokenManagerService;
|
|
50
53
|
auth?: AuthService;
|
|
51
54
|
httpAuth?: HttpAuthService;
|
|
52
55
|
tokenFactoryAlgorithm?: string;
|
|
@@ -55,7 +58,10 @@ interface RouterOptions {
|
|
|
55
58
|
catalogApi?: CatalogApi;
|
|
56
59
|
ownershipResolver?: AuthOwnershipResolver;
|
|
57
60
|
}
|
|
58
|
-
/**
|
|
61
|
+
/**
|
|
62
|
+
* @public
|
|
63
|
+
* @deprecated Please migrate to the new backend system as this will be removed in the future.
|
|
64
|
+
*/
|
|
59
65
|
declare function createRouter(options: RouterOptions): Promise<express.Router>;
|
|
60
66
|
|
|
61
67
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-auth-backend",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.11",
|
|
4
4
|
"description": "A Backstage backend plugin that handles authentication",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "backend-plugin",
|
|
@@ -43,29 +43,29 @@
|
|
|
43
43
|
"test": "backstage-cli package test"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@backstage/backend-common": "^0.
|
|
47
|
-
"@backstage/backend-plugin-api": "^0.8.0
|
|
48
|
-
"@backstage/catalog-client": "^1.6.6
|
|
49
|
-
"@backstage/catalog-model": "^1.6.0
|
|
46
|
+
"@backstage/backend-common": "^0.24.0",
|
|
47
|
+
"@backstage/backend-plugin-api": "^0.8.0",
|
|
48
|
+
"@backstage/catalog-client": "^1.6.6",
|
|
49
|
+
"@backstage/catalog-model": "^1.6.0",
|
|
50
50
|
"@backstage/config": "^1.2.0",
|
|
51
51
|
"@backstage/errors": "^1.2.4",
|
|
52
|
-
"@backstage/plugin-auth-backend-module-atlassian-provider": "^0.2.4
|
|
53
|
-
"@backstage/plugin-auth-backend-module-aws-alb-provider": "^0.1.
|
|
54
|
-
"@backstage/plugin-auth-backend-module-azure-easyauth-provider": "^0.1.6
|
|
55
|
-
"@backstage/plugin-auth-backend-module-bitbucket-provider": "^0.1.6
|
|
56
|
-
"@backstage/plugin-auth-backend-module-cloudflare-access-provider": "^0.2.0
|
|
57
|
-
"@backstage/plugin-auth-backend-module-gcp-iap-provider": "^0.2.18
|
|
58
|
-
"@backstage/plugin-auth-backend-module-github-provider": "^0.1.20
|
|
59
|
-
"@backstage/plugin-auth-backend-module-gitlab-provider": "^0.1.20
|
|
60
|
-
"@backstage/plugin-auth-backend-module-google-provider": "^0.1.20
|
|
61
|
-
"@backstage/plugin-auth-backend-module-microsoft-provider": "^0.1.18
|
|
62
|
-
"@backstage/plugin-auth-backend-module-oauth2-provider": "^0.2.4
|
|
63
|
-
"@backstage/plugin-auth-backend-module-oauth2-proxy-provider": "^0.1.16
|
|
64
|
-
"@backstage/plugin-auth-backend-module-oidc-provider": "^0.2.
|
|
65
|
-
"@backstage/plugin-auth-backend-module-okta-provider": "^0.0.16
|
|
66
|
-
"@backstage/plugin-auth-backend-module-onelogin-provider": "^0.1.4
|
|
67
|
-
"@backstage/plugin-auth-node": "^0.5.0
|
|
68
|
-
"@backstage/plugin-catalog-node": "^1.12.5
|
|
52
|
+
"@backstage/plugin-auth-backend-module-atlassian-provider": "^0.2.4",
|
|
53
|
+
"@backstage/plugin-auth-backend-module-aws-alb-provider": "^0.1.16",
|
|
54
|
+
"@backstage/plugin-auth-backend-module-azure-easyauth-provider": "^0.1.6",
|
|
55
|
+
"@backstage/plugin-auth-backend-module-bitbucket-provider": "^0.1.6",
|
|
56
|
+
"@backstage/plugin-auth-backend-module-cloudflare-access-provider": "^0.2.0",
|
|
57
|
+
"@backstage/plugin-auth-backend-module-gcp-iap-provider": "^0.2.18",
|
|
58
|
+
"@backstage/plugin-auth-backend-module-github-provider": "^0.1.20",
|
|
59
|
+
"@backstage/plugin-auth-backend-module-gitlab-provider": "^0.1.20",
|
|
60
|
+
"@backstage/plugin-auth-backend-module-google-provider": "^0.1.20",
|
|
61
|
+
"@backstage/plugin-auth-backend-module-microsoft-provider": "^0.1.18",
|
|
62
|
+
"@backstage/plugin-auth-backend-module-oauth2-provider": "^0.2.4",
|
|
63
|
+
"@backstage/plugin-auth-backend-module-oauth2-proxy-provider": "^0.1.16",
|
|
64
|
+
"@backstage/plugin-auth-backend-module-oidc-provider": "^0.2.5",
|
|
65
|
+
"@backstage/plugin-auth-backend-module-okta-provider": "^0.0.16",
|
|
66
|
+
"@backstage/plugin-auth-backend-module-onelogin-provider": "^0.1.4",
|
|
67
|
+
"@backstage/plugin-auth-node": "^0.5.0",
|
|
68
|
+
"@backstage/plugin-catalog-node": "^1.12.5",
|
|
69
69
|
"@backstage/types": "^1.1.1",
|
|
70
70
|
"@google-cloud/firestore": "^7.0.0",
|
|
71
71
|
"@node-saml/passport-saml": "^4.0.4",
|
|
@@ -101,9 +101,9 @@
|
|
|
101
101
|
"yn": "^4.0.0"
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
|
-
"@backstage/backend-defaults": "^0.4.
|
|
105
|
-
"@backstage/backend-test-utils": "^0.
|
|
106
|
-
"@backstage/cli": "^0.27.0
|
|
104
|
+
"@backstage/backend-defaults": "^0.4.3",
|
|
105
|
+
"@backstage/backend-test-utils": "^0.5.0",
|
|
106
|
+
"@backstage/cli": "^0.27.0",
|
|
107
107
|
"@types/body-parser": "^1.19.0",
|
|
108
108
|
"@types/cookie-parser": "^1.4.2",
|
|
109
109
|
"@types/express-session": "^1.17.2",
|