@backstage/plugin-auth-backend 0.15.0-next.1 → 0.15.0-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/dist/index.d.ts CHANGED
@@ -742,6 +742,23 @@ declare const defaultAuthProviderFactories: {
742
742
  [providerId: string]: AuthProviderFactory;
743
743
  };
744
744
 
745
+ /**
746
+ * Creates a standardized representation of an integration with a third-party
747
+ * auth provider.
748
+ *
749
+ * The returned object facilitates the creation of provider instances, and
750
+ * supplies built-in sign-in resolvers for the specific provider.
751
+ */
752
+ declare function createAuthProviderIntegration<TCreateOptions extends unknown[], TResolvers extends {
753
+ [name in string]: (...args: any[]) => SignInResolver<any>;
754
+ }>(config: {
755
+ create: (...args: TCreateOptions) => AuthProviderFactory;
756
+ resolvers?: TResolvers;
757
+ }): Readonly<{
758
+ create: (...args: TCreateOptions) => AuthProviderFactory;
759
+ resolvers: Readonly<string extends keyof TResolvers ? never : TResolvers>;
760
+ }>;
761
+
745
762
  /**
746
763
  * Parses a Backstage-issued token and decorates the
747
764
  * {@link @backstage/plugin-auth-node#BackstageIdentityResponse} with identity information sourced from the
@@ -824,4 +841,4 @@ declare class CatalogIdentityClient {
824
841
  */
825
842
  declare function getDefaultOwnershipEntityRefs(entity: Entity): string[];
826
843
 
827
- export { AtlassianAuthProvider, AuthHandler, AuthHandlerResult, AuthProviderConfig, AuthProviderFactory, AuthProviderRouteHandlers, AuthResolverCatalogUserQuery, AuthResolverContext, AuthResponse, AwsAlbResult, BitbucketOAuthResult, BitbucketPassportProfile, CatalogIdentityClient, CookieConfigurer, GcpIapResult, GcpIapTokenInfo, GithubOAuthResult, OAuth2ProxyResult, OAuthAdapter, OAuthEnvironmentHandler, OAuthHandlers, OAuthProviderInfo, OAuthProviderOptions, OAuthRefreshRequest, OAuthResponse, OAuthResult, OAuthStartRequest, OAuthState, OidcAuthResult, ProfileInfo, RouterOptions, SamlAuthResult, SignInInfo, SignInResolver, StateEncoder, TokenParams, WebMessageResponse, createOriginFilter, createRouter, defaultAuthProviderFactories, encodeState, ensuresXRequestedWith, getDefaultOwnershipEntityRefs, postMessageResponse, prepareBackstageIdentityResponse, providers, readState, verifyNonce };
844
+ export { AtlassianAuthProvider, AuthHandler, AuthHandlerResult, AuthProviderConfig, AuthProviderFactory, AuthProviderRouteHandlers, AuthResolverCatalogUserQuery, AuthResolverContext, AuthResponse, AwsAlbResult, BitbucketOAuthResult, BitbucketPassportProfile, CatalogIdentityClient, CookieConfigurer, GcpIapResult, GcpIapTokenInfo, GithubOAuthResult, OAuth2ProxyResult, OAuthAdapter, OAuthEnvironmentHandler, OAuthHandlers, OAuthProviderInfo, OAuthProviderOptions, OAuthRefreshRequest, OAuthResponse, OAuthResult, OAuthStartRequest, OAuthState, OidcAuthResult, ProfileInfo, RouterOptions, SamlAuthResult, SignInInfo, SignInResolver, StateEncoder, TokenParams, WebMessageResponse, createAuthProviderIntegration, createOriginFilter, createRouter, defaultAuthProviderFactories, encodeState, ensuresXRequestedWith, getDefaultOwnershipEntityRefs, postMessageResponse, prepareBackstageIdentityResponse, providers, readState, verifyNonce };
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.15.0-next.1",
4
+ "version": "0.15.0-next.2",
5
5
  "main": "dist/index.cjs.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "license": "Apache-2.0",
@@ -33,9 +33,9 @@
33
33
  "clean": "backstage-cli package clean"
34
34
  },
35
35
  "dependencies": {
36
- "@backstage/backend-common": "^0.14.1-next.1",
36
+ "@backstage/backend-common": "^0.14.1-next.2",
37
37
  "@backstage/catalog-client": "^1.0.4-next.1",
38
- "@backstage/catalog-model": "^1.1.0-next.1",
38
+ "@backstage/catalog-model": "^1.1.0-next.2",
39
39
  "@backstage/config": "^1.0.1",
40
40
  "@backstage/errors": "^1.1.0-next.0",
41
41
  "@backstage/plugin-auth-node": "^0.2.3-next.1",
@@ -53,7 +53,7 @@
53
53
  "google-auth-library": "^8.0.0",
54
54
  "jose": "^4.6.0",
55
55
  "jwt-decode": "^3.1.0",
56
- "knex": "^1.0.2",
56
+ "knex": "^2.0.0",
57
57
  "lodash": "^4.17.21",
58
58
  "luxon": "^2.0.2",
59
59
  "minimatch": "^5.0.0",
@@ -76,8 +76,8 @@
76
76
  "yn": "^4.0.0"
77
77
  },
78
78
  "devDependencies": {
79
- "@backstage/backend-test-utils": "^0.1.26-next.1",
80
- "@backstage/cli": "^0.18.0-next.1",
79
+ "@backstage/backend-test-utils": "^0.1.26-next.2",
80
+ "@backstage/cli": "^0.18.0-next.2",
81
81
  "@types/body-parser": "^1.19.0",
82
82
  "@types/cookie-parser": "^1.4.2",
83
83
  "@types/express-session": "^1.17.2",
@@ -97,5 +97,5 @@
97
97
  "config.d.ts"
98
98
  ],
99
99
  "configSchema": "config.d.ts",
100
- "gitHead": "e0a993834c31487a97a1ae6878eaf3685f03fc1a"
100
+ "gitHead": "3eddfb061dd0abe711f4b88d2e0fb4b99e692978"
101
101
  }