@backstage/plugin-auth-backend 0.17.5-next.2 → 0.18.1-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/CHANGELOG.md +31 -0
- package/dist/index.cjs.js +168 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +26 -2
- package/package.json +8 -7
package/dist/index.d.ts
CHANGED
|
@@ -481,6 +481,19 @@ declare type BitbucketPassportProfile = Profile & {
|
|
|
481
481
|
};
|
|
482
482
|
};
|
|
483
483
|
|
|
484
|
+
/** @public */
|
|
485
|
+
declare type BitbucketServerOAuthResult = {
|
|
486
|
+
fullProfile: Profile;
|
|
487
|
+
params: {
|
|
488
|
+
scope: string;
|
|
489
|
+
access_token?: string;
|
|
490
|
+
token_type?: string;
|
|
491
|
+
expires_in?: number;
|
|
492
|
+
};
|
|
493
|
+
accessToken: string;
|
|
494
|
+
refreshToken?: string;
|
|
495
|
+
};
|
|
496
|
+
|
|
484
497
|
/**
|
|
485
498
|
* CloudflareAccessClaims
|
|
486
499
|
*
|
|
@@ -712,13 +725,24 @@ declare const providers: Readonly<{
|
|
|
712
725
|
userIdMatchingUserEntityAnnotation(): SignInResolver<OAuthResult>;
|
|
713
726
|
}>;
|
|
714
727
|
}>;
|
|
728
|
+
bitbucketServer: Readonly<{
|
|
729
|
+
create: (options?: {
|
|
730
|
+
authHandler?: AuthHandler<BitbucketServerOAuthResult> | undefined;
|
|
731
|
+
signIn?: {
|
|
732
|
+
resolver: SignInResolver<BitbucketServerOAuthResult>;
|
|
733
|
+
} | undefined;
|
|
734
|
+
} | undefined) => AuthProviderFactory;
|
|
735
|
+
resolvers: Readonly<{
|
|
736
|
+
emailMatchingUserEntityProfileEmail: () => SignInResolver<BitbucketServerOAuthResult>;
|
|
737
|
+
}>;
|
|
738
|
+
}>;
|
|
715
739
|
cfAccess: Readonly<{
|
|
716
740
|
create: (options: {
|
|
717
741
|
authHandler?: AuthHandler<CloudflareAccessResult> | undefined;
|
|
718
742
|
signIn: {
|
|
719
743
|
resolver: SignInResolver<CloudflareAccessResult>;
|
|
720
744
|
};
|
|
721
|
-
cache?: _backstage_backend_plugin_api.
|
|
745
|
+
cache?: _backstage_backend_plugin_api.CacheService | undefined;
|
|
722
746
|
}) => AuthProviderFactory;
|
|
723
747
|
resolvers: Readonly<{
|
|
724
748
|
emailMatchingUserEntityProfileEmail: () => SignInResolver<unknown>;
|
|
@@ -960,4 +984,4 @@ declare class CatalogIdentityClient {
|
|
|
960
984
|
*/
|
|
961
985
|
declare function getDefaultOwnershipEntityRefs(entity: Entity): string[];
|
|
962
986
|
|
|
963
|
-
export { AuthHandler, AuthHandlerResult, AuthProviderConfig, AuthProviderFactory, AuthProviderRouteHandlers, AuthResolverCatalogUserQuery, AuthResolverContext, AuthResponse, AwsAlbResult, BitbucketOAuthResult, BitbucketPassportProfile, CatalogIdentityClient, CloudflareAccessClaims, CloudflareAccessGroup, CloudflareAccessIdentityProfile, CloudflareAccessResult, CookieConfigurer, GcpIapResult, GcpIapTokenInfo, GithubOAuthResult, OAuth2ProxyResult, OAuthAdapter, OAuthAdapterOptions, OAuthEnvironmentHandler, OAuthHandlers, OAuthLogoutRequest, OAuthProviderInfo, OAuthProviderOptions, OAuthRefreshRequest, OAuthResponse, OAuthResult, OAuthStartRequest, OAuthStartResponse, OAuthState, OidcAuthResult, ProfileInfo, ProviderFactories, RouterOptions, SamlAuthResult, SignInInfo, SignInResolver, StateEncoder, TokenParams, WebMessageResponse, createAuthProviderIntegration, createOriginFilter, createRouter, defaultAuthProviderFactories, encodeState, ensuresXRequestedWith, getDefaultOwnershipEntityRefs, postMessageResponse, prepareBackstageIdentityResponse, providers, readState, verifyNonce };
|
|
987
|
+
export { AuthHandler, AuthHandlerResult, AuthProviderConfig, AuthProviderFactory, AuthProviderRouteHandlers, AuthResolverCatalogUserQuery, AuthResolverContext, AuthResponse, AwsAlbResult, BitbucketOAuthResult, BitbucketPassportProfile, BitbucketServerOAuthResult, CatalogIdentityClient, CloudflareAccessClaims, CloudflareAccessGroup, CloudflareAccessIdentityProfile, CloudflareAccessResult, CookieConfigurer, GcpIapResult, GcpIapTokenInfo, GithubOAuthResult, OAuth2ProxyResult, OAuthAdapter, OAuthAdapterOptions, OAuthEnvironmentHandler, OAuthHandlers, OAuthLogoutRequest, OAuthProviderInfo, OAuthProviderOptions, OAuthRefreshRequest, OAuthResponse, OAuthResult, OAuthStartRequest, OAuthStartResponse, OAuthState, OidcAuthResult, ProfileInfo, ProviderFactories, 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.
|
|
4
|
+
"version": "0.18.1-next.0",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
"clean": "backstage-cli package clean"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@backstage/backend-common": "^0.18.
|
|
36
|
-
"@backstage/catalog-client": "^1.
|
|
37
|
-
"@backstage/catalog-model": "^1.2.
|
|
35
|
+
"@backstage/backend-common": "^0.18.3-next.0",
|
|
36
|
+
"@backstage/catalog-client": "^1.4.0-next.0",
|
|
37
|
+
"@backstage/catalog-model": "^1.2.1-next.0",
|
|
38
38
|
"@backstage/config": "^1.0.6",
|
|
39
39
|
"@backstage/errors": "^1.1.4",
|
|
40
|
-
"@backstage/plugin-auth-node": "^0.2.
|
|
40
|
+
"@backstage/plugin-auth-node": "^0.2.12-next.0",
|
|
41
41
|
"@backstage/types": "^1.0.2",
|
|
42
42
|
"@davidzemon/passport-okta-oauth": "^0.0.5",
|
|
43
43
|
"@google-cloud/firestore": "^6.0.0",
|
|
@@ -76,8 +76,9 @@
|
|
|
76
76
|
"yn": "^4.0.0"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
|
-
"@backstage/backend-test-utils": "^0.1.
|
|
80
|
-
"@backstage/cli": "^0.22.
|
|
79
|
+
"@backstage/backend-test-utils": "^0.1.35-next.0",
|
|
80
|
+
"@backstage/cli": "^0.22.4-next.0",
|
|
81
|
+
"@backstage/test-utils": "^1.2.6-next.0",
|
|
81
82
|
"@types/body-parser": "^1.19.0",
|
|
82
83
|
"@types/cookie-parser": "^1.4.2",
|
|
83
84
|
"@types/express-session": "^1.17.2",
|