@kustodian/plugin-authentik 1.0.0 → 2.0.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/executor.d.ts +15 -0
- package/dist/executor.d.ts.map +1 -0
- package/dist/generator.d.ts +36 -0
- package/dist/generator.d.ts.map +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +16832 -0
- package/dist/plugin.d.ts +11 -0
- package/dist/plugin.d.ts.map +1 -0
- package/dist/types.d.ts +344 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +13 -8
- package/src/executor.ts +0 -119
- package/src/generator.ts +0 -319
- package/src/index.ts +0 -44
- package/src/plugin.ts +0 -238
- package/src/types.ts +0 -296
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { KustodianErrorType } from '@kustodian/core';
|
|
2
|
+
import { type ResultType } from '@kustodian/core';
|
|
3
|
+
/**
|
|
4
|
+
* Check if Authentik CLI is available.
|
|
5
|
+
*/
|
|
6
|
+
export declare function check_authentik_available(): Promise<ResultType<string, KustodianErrorType>>;
|
|
7
|
+
/**
|
|
8
|
+
* Validate Authentik blueprint file.
|
|
9
|
+
*/
|
|
10
|
+
export declare function validate_blueprint(blueprint_path: string): Promise<ResultType<void, KustodianErrorType>>;
|
|
11
|
+
/**
|
|
12
|
+
* Generate random secret (for OAuth2 clients).
|
|
13
|
+
*/
|
|
14
|
+
export declare function generate_random_secret(length?: number): Promise<ResultType<string, KustodianErrorType>>;
|
|
15
|
+
//# sourceMappingURL=executor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../src/executor.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,KAAK,UAAU,EAAyB,MAAM,iBAAiB,CAAC;AAMzE;;GAEG;AACH,wBAAsB,yBAAyB,IAAI,OAAO,CAAC,UAAU,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC,CAejG;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CACtC,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC,UAAU,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC,CAuD/C;AAED;;GAEG;AACH,wBAAsB,sBAAsB,CAC1C,MAAM,SAAK,GACV,OAAO,CAAC,UAAU,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC,CAoBjD"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { KustodianErrorType } from '@kustodian/core';
|
|
2
|
+
import { type ResultType } from '@kustodian/core';
|
|
3
|
+
import type { AuthConfigType, AuthentikApplicationType, AuthentikBlueprintType, AuthentikOAuth2ProviderType, AuthentikPluginOptionsType, AuthentikProxyProviderType, AuthentikSAMLProviderType } from './types.js';
|
|
4
|
+
/**
|
|
5
|
+
* Generate a random secret for OAuth2 clients.
|
|
6
|
+
*/
|
|
7
|
+
export declare function generate_client_secret(length?: number): string;
|
|
8
|
+
/**
|
|
9
|
+
* Generate OAuth2 provider blueprint entry.
|
|
10
|
+
*/
|
|
11
|
+
export declare function generate_oauth2_provider(auth_config: AuthConfigType, options: AuthentikPluginOptionsType): ResultType<AuthentikOAuth2ProviderType, KustodianErrorType>;
|
|
12
|
+
/**
|
|
13
|
+
* Generate SAML provider blueprint entry.
|
|
14
|
+
*/
|
|
15
|
+
export declare function generate_saml_provider(auth_config: AuthConfigType, options: AuthentikPluginOptionsType): ResultType<AuthentikSAMLProviderType, KustodianErrorType>;
|
|
16
|
+
/**
|
|
17
|
+
* Generate Proxy provider blueprint entry.
|
|
18
|
+
*/
|
|
19
|
+
export declare function generate_proxy_provider(auth_config: AuthConfigType, options: AuthentikPluginOptionsType): ResultType<AuthentikProxyProviderType, KustodianErrorType>;
|
|
20
|
+
/**
|
|
21
|
+
* Generate application blueprint entry.
|
|
22
|
+
*/
|
|
23
|
+
export declare function generate_application(auth_config: AuthConfigType, provider_name: string): AuthentikApplicationType;
|
|
24
|
+
/**
|
|
25
|
+
* Generate complete Authentik blueprint from auth configuration.
|
|
26
|
+
*/
|
|
27
|
+
export declare function generate_authentik_blueprint(auth_config: AuthConfigType, options: AuthentikPluginOptionsType): ResultType<AuthentikBlueprintType, KustodianErrorType>;
|
|
28
|
+
/**
|
|
29
|
+
* Convert blueprint to YAML string.
|
|
30
|
+
*/
|
|
31
|
+
export declare function blueprint_to_yaml(blueprint: AuthentikBlueprintType): string;
|
|
32
|
+
/**
|
|
33
|
+
* Parse YAML string to blueprint.
|
|
34
|
+
*/
|
|
35
|
+
export declare function yaml_to_blueprint(yaml_string: string): ResultType<AuthentikBlueprintType, KustodianErrorType>;
|
|
36
|
+
//# sourceMappingURL=generator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../src/generator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,KAAK,UAAU,EAAoB,MAAM,iBAAiB,CAAC;AAGpE,OAAO,KAAK,EACV,cAAc,EACd,wBAAwB,EACxB,sBAAsB,EACtB,2BAA2B,EAC3B,0BAA0B,EAC1B,0BAA0B,EAC1B,yBAAyB,EAC1B,MAAM,YAAY,CAAC;AAEpB;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,SAAK,GAAG,MAAM,CAS1D;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,WAAW,EAAE,cAAc,EAC3B,OAAO,EAAE,0BAA0B,GAClC,UAAU,CAAC,2BAA2B,EAAE,kBAAkB,CAAC,CA+C7D;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,WAAW,EAAE,cAAc,EAC3B,OAAO,EAAE,0BAA0B,GAClC,UAAU,CAAC,yBAAyB,EAAE,kBAAkB,CAAC,CA4C3D;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,WAAW,EAAE,cAAc,EAC3B,OAAO,EAAE,0BAA0B,GAClC,UAAU,CAAC,0BAA0B,EAAE,kBAAkB,CAAC,CAqD5D;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,WAAW,EAAE,cAAc,EAC3B,aAAa,EAAE,MAAM,GACpB,wBAAwB,CA6B1B;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAC1C,WAAW,EAAE,cAAc,EAC3B,OAAO,EAAE,0BAA0B,GAClC,UAAU,CAAC,sBAAsB,EAAE,kBAAkB,CAAC,CAkDxD;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,sBAAsB,GAAG,MAAM,CAO3E;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,WAAW,EAAE,MAAM,GAClB,UAAU,CAAC,sBAAsB,EAAE,kBAAkB,CAAC,CAUxD"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Authentik authentication provider plugin for Kustodian
|
|
3
|
+
*
|
|
4
|
+
* This plugin enables integration with Authentik for authentication and authorization.
|
|
5
|
+
* It can generate OAuth2, SAML, and Proxy provider configurations, create Authentik
|
|
6
|
+
* blueprints, and manage authentication requirements for deployed applications.
|
|
7
|
+
*
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
*/
|
|
10
|
+
export { check_authentik_available, generate_random_secret, validate_blueprint, } from './executor.js';
|
|
11
|
+
export { blueprint_to_yaml, generate_application, generate_authentik_blueprint, generate_client_secret, generate_oauth2_provider, generate_proxy_provider, generate_saml_provider, yaml_to_blueprint, } from './generator.js';
|
|
12
|
+
export { create_authentik_plugin, plugin as default } from './plugin.js';
|
|
13
|
+
export type { AuthConfigType, AuthentikApplicationType, AuthentikBlueprintType, AuthentikFlowType, AuthentikOAuth2ProviderType, AuthentikPluginOptionsType, AuthentikProxyProviderType, AuthentikSAMLProviderType, AuthProviderType, ClientTypeType, OAuth2ProviderConfigType, ProxyModeType, ProxyProviderConfigType, SAMLBindingType, SAMLNameIDPolicyType, SAMLProviderConfigType, } from './types.js';
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EACL,yBAAyB,EACzB,sBAAsB,EACtB,kBAAkB,GACnB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,4BAA4B,EAC5B,sBAAsB,EACtB,wBAAwB,EACxB,uBAAuB,EACvB,sBAAsB,EACtB,iBAAiB,GAClB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,uBAAuB,EAAE,MAAM,IAAI,OAAO,EAAE,MAAM,aAAa,CAAC;AACzE,YAAY,EACV,cAAc,EACd,wBAAwB,EACxB,sBAAsB,EACtB,iBAAiB,EACjB,2BAA2B,EAC3B,0BAA0B,EAC1B,0BAA0B,EAC1B,yBAAyB,EACzB,gBAAgB,EAChB,cAAc,EACd,wBAAwB,EACxB,aAAa,EACb,uBAAuB,EACvB,eAAe,EACf,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,YAAY,CAAC"}
|