@backstage/plugin-auth-backend 0.18.2-next.2 → 0.18.2-next.3
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 +28 -0
- package/dist/index.cjs.js +147 -26
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +20 -2
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -402,6 +402,12 @@ type AwsAlbResult = {
|
|
|
402
402
|
accessToken: string;
|
|
403
403
|
};
|
|
404
404
|
|
|
405
|
+
/** @public */
|
|
406
|
+
type EasyAuthResult = {
|
|
407
|
+
fullProfile: Profile;
|
|
408
|
+
accessToken?: string;
|
|
409
|
+
};
|
|
410
|
+
|
|
405
411
|
/** @public */
|
|
406
412
|
declare class OAuthEnvironmentHandler implements AuthProviderRouteHandlers {
|
|
407
413
|
private readonly handlers;
|
|
@@ -831,7 +837,10 @@ declare const providers: Readonly<{
|
|
|
831
837
|
resolver: SignInResolver<OidcAuthResult>;
|
|
832
838
|
} | undefined;
|
|
833
839
|
} | undefined) => AuthProviderFactory;
|
|
834
|
-
resolvers:
|
|
840
|
+
resolvers: Readonly<{
|
|
841
|
+
emailLocalPartMatchingUserEntityName: () => SignInResolver<unknown>;
|
|
842
|
+
emailMatchingUserEntityProfileEmail: () => SignInResolver<unknown>;
|
|
843
|
+
}>;
|
|
835
844
|
}>;
|
|
836
845
|
okta: Readonly<{
|
|
837
846
|
create: (options?: {
|
|
@@ -866,6 +875,15 @@ declare const providers: Readonly<{
|
|
|
866
875
|
nameIdMatchingUserEntityName(): SignInResolver<SamlAuthResult>;
|
|
867
876
|
}>;
|
|
868
877
|
}>;
|
|
878
|
+
easyAuth: Readonly<{
|
|
879
|
+
create: (options?: {
|
|
880
|
+
authHandler?: AuthHandler<EasyAuthResult> | undefined;
|
|
881
|
+
signIn: {
|
|
882
|
+
resolver: SignInResolver<EasyAuthResult>;
|
|
883
|
+
};
|
|
884
|
+
} | undefined) => AuthProviderFactory;
|
|
885
|
+
resolvers: never;
|
|
886
|
+
}>;
|
|
869
887
|
}>;
|
|
870
888
|
/**
|
|
871
889
|
* All auth provider factories that are installed by default.
|
|
@@ -986,4 +1004,4 @@ declare class CatalogIdentityClient {
|
|
|
986
1004
|
*/
|
|
987
1005
|
declare function getDefaultOwnershipEntityRefs(entity: Entity): string[];
|
|
988
1006
|
|
|
989
|
-
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 };
|
|
1007
|
+
export { AuthHandler, AuthHandlerResult, AuthProviderConfig, AuthProviderFactory, AuthProviderRouteHandlers, AuthResolverCatalogUserQuery, AuthResolverContext, AuthResponse, AwsAlbResult, BitbucketOAuthResult, BitbucketPassportProfile, BitbucketServerOAuthResult, CatalogIdentityClient, CloudflareAccessClaims, CloudflareAccessGroup, CloudflareAccessIdentityProfile, CloudflareAccessResult, CookieConfigurer, EasyAuthResult, 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.18.2-next.
|
|
4
|
+
"version": "0.18.2-next.3",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@backstage/backend-common": "^0.18.4-next.2",
|
|
36
|
-
"@backstage/catalog-client": "^1.4.1-next.
|
|
37
|
-
"@backstage/catalog-model": "^1.
|
|
36
|
+
"@backstage/catalog-client": "^1.4.1-next.1",
|
|
37
|
+
"@backstage/catalog-model": "^1.3.0-next.0",
|
|
38
38
|
"@backstage/config": "^1.0.7",
|
|
39
39
|
"@backstage/errors": "^1.1.5",
|
|
40
40
|
"@backstage/plugin-auth-node": "^0.2.13-next.2",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@backstage/backend-test-utils": "^0.1.36-next.2",
|
|
80
|
-
"@backstage/cli": "^0.22.6-next.
|
|
80
|
+
"@backstage/cli": "^0.22.6-next.3",
|
|
81
81
|
"@types/body-parser": "^1.19.0",
|
|
82
82
|
"@types/cookie-parser": "^1.4.2",
|
|
83
83
|
"@types/express-session": "^1.17.2",
|