authhero 0.251.0 → 0.253.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/authhero.cjs +52 -60
- package/dist/authhero.d.ts +27 -1
- package/dist/authhero.mjs +15834 -21485
- package/dist/stats.html +1 -1
- package/package.json +4 -4
package/dist/authhero.d.ts
CHANGED
|
@@ -17038,6 +17038,29 @@ export type Variables = {
|
|
|
17038
17038
|
useragent?: string;
|
|
17039
17039
|
countryCode?: CountryCode;
|
|
17040
17040
|
};
|
|
17041
|
+
/**
|
|
17042
|
+
* Interface for SAML signing implementations.
|
|
17043
|
+
* This allows for different signing strategies (local, HTTP, etc.)
|
|
17044
|
+
*/
|
|
17045
|
+
export interface SamlSigner {
|
|
17046
|
+
/**
|
|
17047
|
+
* Signs SAML XML content with the provided private key and certificate
|
|
17048
|
+
* @param xmlContent - The XML content to sign
|
|
17049
|
+
* @param privateKey - The private key in PEM format
|
|
17050
|
+
* @param publicCert - The public certificate
|
|
17051
|
+
* @returns The signed XML content
|
|
17052
|
+
*/
|
|
17053
|
+
signSAML(xmlContent: string, privateKey: string, publicCert: string): Promise<string>;
|
|
17054
|
+
}
|
|
17055
|
+
/**
|
|
17056
|
+
* HTTP-based SAML signer that delegates signing to a remote endpoint.
|
|
17057
|
+
* This implementation can be used in edge/browser environments where xml-crypto is not available.
|
|
17058
|
+
*/
|
|
17059
|
+
export declare class HttpSamlSigner implements SamlSigner {
|
|
17060
|
+
private signUrl;
|
|
17061
|
+
constructor(signUrl: string);
|
|
17062
|
+
signSAML(xmlContent: string, privateKey: string, publicCert: string): Promise<string>;
|
|
17063
|
+
}
|
|
17041
17064
|
export type Transaction = {
|
|
17042
17065
|
id?: string;
|
|
17043
17066
|
locale: string;
|
|
@@ -17290,11 +17313,13 @@ export type Bindings = {
|
|
|
17290
17313
|
};
|
|
17291
17314
|
JWKS_CACHE_TIMEOUT_IN_SECONDS: number;
|
|
17292
17315
|
ORGANIZATION_NAME: string;
|
|
17293
|
-
SAML_SIGN_URL
|
|
17316
|
+
SAML_SIGN_URL?: string;
|
|
17317
|
+
samlSigner?: SamlSigner;
|
|
17294
17318
|
};
|
|
17295
17319
|
export interface AuthHeroConfig {
|
|
17296
17320
|
dataAdapter: DataAdapters;
|
|
17297
17321
|
allowedOrigins?: string[];
|
|
17322
|
+
samlSigner?: SamlSigner;
|
|
17298
17323
|
hooks?: {
|
|
17299
17324
|
onExecuteCredentialsExchange?: OnExecuteCredentialsExchange;
|
|
17300
17325
|
onExecutePreUserRegistration?: OnExecutePreUserRegistration;
|
|
@@ -22079,6 +22104,7 @@ export declare function init(config: AuthHeroConfig): {
|
|
|
22079
22104
|
} & {
|
|
22080
22105
|
json: {
|
|
22081
22106
|
name?: string | undefined;
|
|
22107
|
+
password?: string | undefined;
|
|
22082
22108
|
email?: string | undefined;
|
|
22083
22109
|
given_name?: string | undefined;
|
|
22084
22110
|
family_name?: string | undefined;
|