authhero 0.1.0 → 0.2.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 +6 -0
- package/package.json +1 -2
- package/vite.config.ts +36 -6
- package/dist/authhero.js +0 -5094
- package/dist/bun.d.ts +0 -8
- package/dist/bun.d.ts.map +0 -1
- package/dist/index.d.ts +0 -9
- package/dist/index.d.ts.map +0 -1
- package/dist/routes/oauth2/index.d.ts +0 -2
- package/dist/routes/oauth2/index.d.ts.map +0 -1
- package/dist/routes/oauth2/well-known.d.ts +0 -55
- package/dist/routes/oauth2/well-known.d.ts.map +0 -1
- package/dist/types/Bindings.d.ts +0 -6
- package/dist/types/Bindings.d.ts.map +0 -1
- package/dist/types/JWKS.d.ts +0 -131
- package/dist/types/JWKS.d.ts.map +0 -1
- package/dist/types/Variables.d.ts +0 -2
- package/dist/types/Variables.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -4
- package/dist/types/index.d.ts.map +0 -1
package/dist/bun.d.ts
DELETED
package/dist/bun.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bun.d.ts","sourceRoot":"","sources":["../src/bun.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAI5C,QAAA,MAAM,GAAG;cAA+B,QAAQ;WAAK,CAAC;AAUtD,eAAe,GAAG,CAAC"}
|
package/dist/index.d.ts
DELETED
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,QAAQ,EAAa,MAAM,SAAS,CAAC;AAG9C,MAAM,WAAW,cAAc;CAAG;AAElC,wBAAgB,IAAI;cAC0B,QAAQ;YAyBrD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/routes/oauth2/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { Bindings } from '../../types';
|
|
2
|
-
import { OpenAPIHono } from '@hono/zod-openapi';
|
|
3
|
-
|
|
4
|
-
export declare const wellKnownRoutes: OpenAPIHono<{
|
|
5
|
-
Bindings: Bindings;
|
|
6
|
-
}, {
|
|
7
|
-
"/jwks.json": {
|
|
8
|
-
$get: {
|
|
9
|
-
input: {};
|
|
10
|
-
output: {
|
|
11
|
-
keys: {
|
|
12
|
-
alg: string;
|
|
13
|
-
e: string;
|
|
14
|
-
kid: string;
|
|
15
|
-
kty: string;
|
|
16
|
-
n: string;
|
|
17
|
-
use?: string | undefined;
|
|
18
|
-
}[];
|
|
19
|
-
};
|
|
20
|
-
outputFormat: "json";
|
|
21
|
-
status: 200;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
} & {
|
|
25
|
-
"/openid-configuration": {
|
|
26
|
-
$get: {
|
|
27
|
-
input: {};
|
|
28
|
-
output: {
|
|
29
|
-
issuer: string;
|
|
30
|
-
authorization_endpoint: string;
|
|
31
|
-
token_endpoint: string;
|
|
32
|
-
device_authorization_endpoint: string;
|
|
33
|
-
userinfo_endpoint: string;
|
|
34
|
-
mfa_challenge_endpoint: string;
|
|
35
|
-
jwks_uri: string;
|
|
36
|
-
registration_endpoint: string;
|
|
37
|
-
revocation_endpoint: string;
|
|
38
|
-
scopes_supported: string[];
|
|
39
|
-
response_types_supported: string[];
|
|
40
|
-
code_challenge_methods_supported: string[];
|
|
41
|
-
response_modes_supported: string[];
|
|
42
|
-
subject_types_supported: string[];
|
|
43
|
-
id_token_signing_alg_values_supported: string[];
|
|
44
|
-
token_endpoint_auth_methods_supported: string[];
|
|
45
|
-
claims_supported: string[];
|
|
46
|
-
request_uri_parameter_supported: boolean;
|
|
47
|
-
request_parameter_supported: boolean;
|
|
48
|
-
token_endpoint_auth_signing_alg_values_supported: string[];
|
|
49
|
-
};
|
|
50
|
-
outputFormat: "json";
|
|
51
|
-
status: 200;
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
}, "/">;
|
|
55
|
-
//# sourceMappingURL=well-known.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"well-known.d.ts","sourceRoot":"","sources":["../../../src/routes/oauth2/well-known.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAIT,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,WAAW,EAAe,MAAM,mBAAmB,CAAC;AAE7D,eAAO,MAAM,eAAe;cAA+B,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0KhE,CAAC"}
|
package/dist/types/Bindings.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Bindings.d.ts","sourceRoot":"","sources":["../../src/types/Bindings.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IAGpB,6BAA6B,EAAE,MAAM,CAAC;CACvC,CAAC"}
|
package/dist/types/JWKS.d.ts
DELETED
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import { z } from '@hono/zod-openapi';
|
|
2
|
-
|
|
3
|
-
export declare const jwksSchema: z.ZodObject<{
|
|
4
|
-
alg: z.ZodString;
|
|
5
|
-
e: z.ZodString;
|
|
6
|
-
kid: z.ZodString;
|
|
7
|
-
kty: z.ZodString;
|
|
8
|
-
n: z.ZodString;
|
|
9
|
-
use: z.ZodOptional<z.ZodString>;
|
|
10
|
-
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
alg: string;
|
|
12
|
-
e: string;
|
|
13
|
-
kid: string;
|
|
14
|
-
kty: string;
|
|
15
|
-
n: string;
|
|
16
|
-
use?: string | undefined;
|
|
17
|
-
}, {
|
|
18
|
-
alg: string;
|
|
19
|
-
e: string;
|
|
20
|
-
kid: string;
|
|
21
|
-
kty: string;
|
|
22
|
-
n: string;
|
|
23
|
-
use?: string | undefined;
|
|
24
|
-
}>;
|
|
25
|
-
export declare const jwksKeySchema: z.ZodObject<{
|
|
26
|
-
keys: z.ZodArray<z.ZodObject<{
|
|
27
|
-
alg: z.ZodString;
|
|
28
|
-
e: z.ZodString;
|
|
29
|
-
kid: z.ZodString;
|
|
30
|
-
kty: z.ZodString;
|
|
31
|
-
n: z.ZodString;
|
|
32
|
-
use: z.ZodOptional<z.ZodString>;
|
|
33
|
-
}, "strip", z.ZodTypeAny, {
|
|
34
|
-
alg: string;
|
|
35
|
-
e: string;
|
|
36
|
-
kid: string;
|
|
37
|
-
kty: string;
|
|
38
|
-
n: string;
|
|
39
|
-
use?: string | undefined;
|
|
40
|
-
}, {
|
|
41
|
-
alg: string;
|
|
42
|
-
e: string;
|
|
43
|
-
kid: string;
|
|
44
|
-
kty: string;
|
|
45
|
-
n: string;
|
|
46
|
-
use?: string | undefined;
|
|
47
|
-
}>, "many">;
|
|
48
|
-
}, "strip", z.ZodTypeAny, {
|
|
49
|
-
keys: {
|
|
50
|
-
alg: string;
|
|
51
|
-
e: string;
|
|
52
|
-
kid: string;
|
|
53
|
-
kty: string;
|
|
54
|
-
n: string;
|
|
55
|
-
use?: string | undefined;
|
|
56
|
-
}[];
|
|
57
|
-
}, {
|
|
58
|
-
keys: {
|
|
59
|
-
alg: string;
|
|
60
|
-
e: string;
|
|
61
|
-
kid: string;
|
|
62
|
-
kty: string;
|
|
63
|
-
n: string;
|
|
64
|
-
use?: string | undefined;
|
|
65
|
-
}[];
|
|
66
|
-
}>;
|
|
67
|
-
export declare const openIDConfigurationSchema: z.ZodObject<{
|
|
68
|
-
issuer: z.ZodString;
|
|
69
|
-
authorization_endpoint: z.ZodString;
|
|
70
|
-
token_endpoint: z.ZodString;
|
|
71
|
-
device_authorization_endpoint: z.ZodString;
|
|
72
|
-
userinfo_endpoint: z.ZodString;
|
|
73
|
-
mfa_challenge_endpoint: z.ZodString;
|
|
74
|
-
jwks_uri: z.ZodString;
|
|
75
|
-
registration_endpoint: z.ZodString;
|
|
76
|
-
revocation_endpoint: z.ZodString;
|
|
77
|
-
scopes_supported: z.ZodArray<z.ZodString, "many">;
|
|
78
|
-
response_types_supported: z.ZodArray<z.ZodString, "many">;
|
|
79
|
-
code_challenge_methods_supported: z.ZodArray<z.ZodString, "many">;
|
|
80
|
-
response_modes_supported: z.ZodArray<z.ZodString, "many">;
|
|
81
|
-
subject_types_supported: z.ZodArray<z.ZodString, "many">;
|
|
82
|
-
id_token_signing_alg_values_supported: z.ZodArray<z.ZodString, "many">;
|
|
83
|
-
token_endpoint_auth_methods_supported: z.ZodArray<z.ZodString, "many">;
|
|
84
|
-
claims_supported: z.ZodArray<z.ZodString, "many">;
|
|
85
|
-
request_uri_parameter_supported: z.ZodBoolean;
|
|
86
|
-
request_parameter_supported: z.ZodBoolean;
|
|
87
|
-
token_endpoint_auth_signing_alg_values_supported: z.ZodArray<z.ZodString, "many">;
|
|
88
|
-
}, "strip", z.ZodTypeAny, {
|
|
89
|
-
issuer: string;
|
|
90
|
-
authorization_endpoint: string;
|
|
91
|
-
token_endpoint: string;
|
|
92
|
-
device_authorization_endpoint: string;
|
|
93
|
-
userinfo_endpoint: string;
|
|
94
|
-
mfa_challenge_endpoint: string;
|
|
95
|
-
jwks_uri: string;
|
|
96
|
-
registration_endpoint: string;
|
|
97
|
-
revocation_endpoint: string;
|
|
98
|
-
scopes_supported: string[];
|
|
99
|
-
response_types_supported: string[];
|
|
100
|
-
code_challenge_methods_supported: string[];
|
|
101
|
-
response_modes_supported: string[];
|
|
102
|
-
subject_types_supported: string[];
|
|
103
|
-
id_token_signing_alg_values_supported: string[];
|
|
104
|
-
token_endpoint_auth_methods_supported: string[];
|
|
105
|
-
claims_supported: string[];
|
|
106
|
-
request_uri_parameter_supported: boolean;
|
|
107
|
-
request_parameter_supported: boolean;
|
|
108
|
-
token_endpoint_auth_signing_alg_values_supported: string[];
|
|
109
|
-
}, {
|
|
110
|
-
issuer: string;
|
|
111
|
-
authorization_endpoint: string;
|
|
112
|
-
token_endpoint: string;
|
|
113
|
-
device_authorization_endpoint: string;
|
|
114
|
-
userinfo_endpoint: string;
|
|
115
|
-
mfa_challenge_endpoint: string;
|
|
116
|
-
jwks_uri: string;
|
|
117
|
-
registration_endpoint: string;
|
|
118
|
-
revocation_endpoint: string;
|
|
119
|
-
scopes_supported: string[];
|
|
120
|
-
response_types_supported: string[];
|
|
121
|
-
code_challenge_methods_supported: string[];
|
|
122
|
-
response_modes_supported: string[];
|
|
123
|
-
subject_types_supported: string[];
|
|
124
|
-
id_token_signing_alg_values_supported: string[];
|
|
125
|
-
token_endpoint_auth_methods_supported: string[];
|
|
126
|
-
claims_supported: string[];
|
|
127
|
-
request_uri_parameter_supported: boolean;
|
|
128
|
-
request_parameter_supported: boolean;
|
|
129
|
-
token_endpoint_auth_signing_alg_values_supported: string[];
|
|
130
|
-
}>;
|
|
131
|
-
//# sourceMappingURL=JWKS.d.ts.map
|
package/dist/types/JWKS.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"JWKS.d.ts","sourceRoot":"","sources":["../../src/types/JWKS.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,mBAAmB,CAAC;AAEtC,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;EAOrB,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAExB,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqBpC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Variables.d.ts","sourceRoot":"","sources":["../../src/types/Variables.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,EAAE,CAAC"}
|
package/dist/types/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC"}
|