@backstage/plugin-auth-backend 0.22.12 → 0.23.0-next.0

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,8 +1,9 @@
1
1
  import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api';
2
- import { LoggerService, DatabaseService, RootConfigService, DiscoveryService, TokenManagerService, AuthService, HttpAuthService } from '@backstage/backend-plugin-api';
2
+ import { LoggerService, DatabaseService, RootConfigService, DiscoveryService, 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 { TokenManager } from '@backstage/backend-common';
6
7
  import { CatalogApi } from '@backstage/catalog-client';
7
8
  import { Config } from '@backstage/config';
8
9
  import { Profile } from 'passport';
@@ -18,14 +19,13 @@ import * as _backstage_plugin_auth_backend_module_gcp_iap_provider from '@backst
18
19
  import { GcpIapTokenInfo as GcpIapTokenInfo$1, GcpIapResult as GcpIapResult$1 } from '@backstage/plugin-auth-backend-module-gcp-iap-provider';
19
20
  import * as _backstage_plugin_auth_backend_module_cloudflare_access_provider from '@backstage/plugin-auth-backend-module-cloudflare-access-provider';
20
21
  import { UserEntity, Entity } from '@backstage/catalog-model';
21
- import { TokenManager } from '@backstage/backend-common';
22
22
 
23
23
  /**
24
24
  * Auth plugin
25
25
  *
26
26
  * @public
27
27
  */
28
- declare const authPlugin: _backstage_backend_plugin_api.BackendFeatureCompat;
28
+ declare const authPlugin: _backstage_backend_plugin_api.BackendFeature;
29
29
 
30
30
  /**
31
31
  * @public
@@ -49,7 +49,7 @@ interface RouterOptions {
49
49
  database: DatabaseService;
50
50
  config: RootConfigService;
51
51
  discovery: DiscoveryService;
52
- tokenManager: TokenManagerService;
52
+ tokenManager?: TokenManager;
53
53
  auth?: AuthService;
54
54
  httpAuth?: HttpAuthService;
55
55
  tokenFactoryAlgorithm?: string;
@@ -663,6 +663,7 @@ declare const providers: Readonly<{
663
663
  resolvers: Readonly<{
664
664
  emailMatchingUserEntityProfileEmail: () => _backstage_plugin_auth_node.SignInResolver<OAuthResult>;
665
665
  emailLocalPartMatchingUserEntityName: () => _backstage_plugin_auth_node.SignInResolver<OAuthResult>;
666
+ userIdMatchingUserEntityAnnotation: () => _backstage_plugin_auth_node.SignInResolver<OAuthResult>;
666
667
  emailMatchingUserEntityAnnotation: () => _backstage_plugin_auth_node.SignInResolver<OAuthResult>;
667
668
  }>;
668
669
  }>;
@@ -800,7 +801,7 @@ declare class CatalogIdentityClient {
800
801
  private readonly auth;
801
802
  constructor(options: {
802
803
  catalogApi: CatalogApi;
803
- tokenManager: TokenManager;
804
+ tokenManager?: TokenManager;
804
805
  discovery: DiscoveryService;
805
806
  auth?: AuthService;
806
807
  httpAuth?: HttpAuthService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-auth-backend",
3
- "version": "0.22.12",
3
+ "version": "0.23.0-next.0",
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.24.1",
47
- "@backstage/backend-plugin-api": "^0.8.1",
46
+ "@backstage/backend-common": "^0.25.0-next.0",
47
+ "@backstage/backend-plugin-api": "^0.9.0-next.0",
48
48
  "@backstage/catalog-client": "^1.6.6",
49
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.5",
53
- "@backstage/plugin-auth-backend-module-aws-alb-provider": "^0.1.17",
54
- "@backstage/plugin-auth-backend-module-azure-easyauth-provider": "^0.1.7",
55
- "@backstage/plugin-auth-backend-module-bitbucket-provider": "^0.1.7",
56
- "@backstage/plugin-auth-backend-module-cloudflare-access-provider": "^0.2.1",
57
- "@backstage/plugin-auth-backend-module-gcp-iap-provider": "^0.2.19",
58
- "@backstage/plugin-auth-backend-module-github-provider": "^0.1.21",
59
- "@backstage/plugin-auth-backend-module-gitlab-provider": "^0.1.21",
60
- "@backstage/plugin-auth-backend-module-google-provider": "^0.1.21",
61
- "@backstage/plugin-auth-backend-module-microsoft-provider": "^0.1.19",
62
- "@backstage/plugin-auth-backend-module-oauth2-provider": "^0.2.5",
63
- "@backstage/plugin-auth-backend-module-oauth2-proxy-provider": "^0.1.17",
64
- "@backstage/plugin-auth-backend-module-oidc-provider": "^0.2.6",
65
- "@backstage/plugin-auth-backend-module-okta-provider": "^0.0.17",
66
- "@backstage/plugin-auth-backend-module-onelogin-provider": "^0.1.5",
67
- "@backstage/plugin-auth-node": "^0.5.1",
68
- "@backstage/plugin-catalog-node": "^1.12.6",
52
+ "@backstage/plugin-auth-backend-module-atlassian-provider": "^0.3.0-next.0",
53
+ "@backstage/plugin-auth-backend-module-aws-alb-provider": "^0.2.0-next.0",
54
+ "@backstage/plugin-auth-backend-module-azure-easyauth-provider": "^0.2.0-next.0",
55
+ "@backstage/plugin-auth-backend-module-bitbucket-provider": "^0.2.0-next.0",
56
+ "@backstage/plugin-auth-backend-module-cloudflare-access-provider": "^0.3.0-next.0",
57
+ "@backstage/plugin-auth-backend-module-gcp-iap-provider": "^0.3.0-next.0",
58
+ "@backstage/plugin-auth-backend-module-github-provider": "^0.2.0-next.0",
59
+ "@backstage/plugin-auth-backend-module-gitlab-provider": "^0.2.0-next.0",
60
+ "@backstage/plugin-auth-backend-module-google-provider": "^0.2.0-next.0",
61
+ "@backstage/plugin-auth-backend-module-microsoft-provider": "^0.2.0-next.0",
62
+ "@backstage/plugin-auth-backend-module-oauth2-provider": "^0.3.0-next.0",
63
+ "@backstage/plugin-auth-backend-module-oauth2-proxy-provider": "^0.2.0-next.0",
64
+ "@backstage/plugin-auth-backend-module-oidc-provider": "^0.3.0-next.0",
65
+ "@backstage/plugin-auth-backend-module-okta-provider": "^0.1.0-next.0",
66
+ "@backstage/plugin-auth-backend-module-onelogin-provider": "^0.2.0-next.0",
67
+ "@backstage/plugin-auth-node": "^0.5.2-next.0",
68
+ "@backstage/plugin-catalog-node": "^1.12.7-next.0",
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.4",
105
- "@backstage/backend-test-utils": "^0.5.1",
106
- "@backstage/cli": "^0.27.0",
104
+ "@backstage/backend-defaults": "^0.5.0-next.0",
105
+ "@backstage/backend-test-utils": "^0.6.0-next.0",
106
+ "@backstage/cli": "^0.27.1-next.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",