@better-auth/sso 1.4.0-beta.20 → 1.4.0-beta.22
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/.turbo/turbo-build.log +9 -10
- package/dist/client.d.mts +1 -1
- package/dist/client.mjs +0 -2
- package/dist/{index-Ba2niv2R.d.mts → index-DOws6HlV.d.mts} +30 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1238 -1
- package/package.json +3 -3
- package/src/client.ts +1 -1
- package/src/index.ts +11 -3
- package/src/routes/sso.ts +32 -4
- package/src/saml.test.ts +207 -1
- package/src/types.ts +23 -0
- package/vitest.config.ts +3 -0
- package/dist/src-BUIX9n33.mjs +0 -1215
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
|
|
2
|
-
> @better-auth/sso@1.4.0-beta.
|
|
2
|
+
> @better-auth/sso@1.4.0-beta.22 build /home/runner/work/better-auth/better-auth/packages/sso
|
|
3
3
|
> tsdown
|
|
4
4
|
|
|
5
|
-
[34mℹ[39m tsdown [2mv0.16.
|
|
5
|
+
[34mℹ[39m tsdown [2mv0.16.5[22m powered by rolldown [2mv1.0.0-beta.50[22m
|
|
6
6
|
[34mℹ[39m Using tsdown config: [4m/home/runner/work/better-auth/better-auth/packages/sso/tsdown.config.ts[24m
|
|
7
|
-
[34mℹ[39m entry: [34msrc/
|
|
7
|
+
[34mℹ[39m entry: [34msrc/index.ts, src/client.ts[39m
|
|
8
8
|
[34mℹ[39m tsconfig: [34mtsconfig.json[39m
|
|
9
9
|
[34mℹ[39m Build start
|
|
10
|
-
[34mℹ[39m [2mdist/[22m[
|
|
11
|
-
[34mℹ[39m [2mdist/[22m[
|
|
12
|
-
[34mℹ[39m [2mdist/[22msrc-BUIX9n33.mjs [2m47.23 kB[22m [2m│ gzip: 8.48 kB[22m
|
|
10
|
+
[34mℹ[39m [2mdist/[22m[1mindex.mjs[22m [2m48.56 kB[22m [2m│ gzip: 8.72 kB[22m
|
|
11
|
+
[34mℹ[39m [2mdist/[22m[1mclient.mjs[22m [2m 0.15 kB[22m [2m│ gzip: 0.14 kB[22m
|
|
13
12
|
[34mℹ[39m [2mdist/[22m[32m[1mclient.d.mts[22m[39m [2m 0.21 kB[22m [2m│ gzip: 0.18 kB[22m
|
|
14
|
-
[34mℹ[39m [2mdist/[22m[32m[1mindex.d.mts[22m[39m [2m 0.
|
|
15
|
-
[34mℹ[39m [2mdist/[22m[32mindex-
|
|
16
|
-
[34mℹ[39m
|
|
17
|
-
[32m✔[39m Build complete in [
|
|
13
|
+
[34mℹ[39m [2mdist/[22m[32m[1mindex.d.mts[22m[39m [2m 0.18 kB[22m [2m│ gzip: 0.14 kB[22m
|
|
14
|
+
[34mℹ[39m [2mdist/[22m[32mindex-DOws6HlV.d.mts[39m [2m21.24 kB[22m [2m│ gzip: 3.48 kB[22m
|
|
15
|
+
[34mℹ[39m 5 files, total: 70.34 kB
|
|
16
|
+
[32m✔[39m Build complete in [32m11501ms[39m
|
package/dist/client.d.mts
CHANGED
package/dist/client.mjs
CHANGED
|
@@ -165,6 +165,29 @@ interface SSOOptions {
|
|
|
165
165
|
* sign-in need to be called with with requestSignUp as true to create new users.
|
|
166
166
|
*/
|
|
167
167
|
disableImplicitSignUp?: boolean | undefined;
|
|
168
|
+
/**
|
|
169
|
+
* The model name for the SSO provider table. Defaults to "ssoProvider".
|
|
170
|
+
*/
|
|
171
|
+
modelName?: string;
|
|
172
|
+
/**
|
|
173
|
+
* Map fields
|
|
174
|
+
*
|
|
175
|
+
* @example
|
|
176
|
+
* ```ts
|
|
177
|
+
* {
|
|
178
|
+
* samlConfig: "saml_config"
|
|
179
|
+
* }
|
|
180
|
+
* ```
|
|
181
|
+
*/
|
|
182
|
+
fields?: {
|
|
183
|
+
issuer?: string | undefined;
|
|
184
|
+
oidcConfig?: string | undefined;
|
|
185
|
+
samlConfig?: string | undefined;
|
|
186
|
+
userId?: string | undefined;
|
|
187
|
+
providerId?: string | undefined;
|
|
188
|
+
organizationId?: string | undefined;
|
|
189
|
+
domain?: string | undefined;
|
|
190
|
+
};
|
|
168
191
|
/**
|
|
169
192
|
* Configure the maximum number of SSO providers a user can register.
|
|
170
193
|
* You can also pass a function that returns a number.
|
|
@@ -205,6 +228,7 @@ declare const spMetadata: () => better_call0.StrictEndpoint<"/sso/saml2/sp/metad
|
|
|
205
228
|
}, z.core.$strip>;
|
|
206
229
|
metadata: {
|
|
207
230
|
openapi: {
|
|
231
|
+
operationId: string;
|
|
208
232
|
summary: string;
|
|
209
233
|
description: string;
|
|
210
234
|
responses: {
|
|
@@ -320,6 +344,7 @@ declare const registerSSOProvider: (options?: SSOOptions) => better_call0.Strict
|
|
|
320
344
|
}>)[];
|
|
321
345
|
metadata: {
|
|
322
346
|
openapi: {
|
|
347
|
+
operationId: string;
|
|
323
348
|
summary: string;
|
|
324
349
|
description: string;
|
|
325
350
|
responses: {
|
|
@@ -502,6 +527,7 @@ declare const signInSSO: (options?: SSOOptions) => better_call0.StrictEndpoint<"
|
|
|
502
527
|
}, z.core.$strip>;
|
|
503
528
|
metadata: {
|
|
504
529
|
openapi: {
|
|
530
|
+
operationId: string;
|
|
505
531
|
summary: string;
|
|
506
532
|
description: string;
|
|
507
533
|
requestBody: {
|
|
@@ -588,6 +614,7 @@ declare const callbackSSO: (options?: SSOOptions) => better_call0.StrictEndpoint
|
|
|
588
614
|
metadata: {
|
|
589
615
|
isAction: boolean;
|
|
590
616
|
openapi: {
|
|
617
|
+
operationId: string;
|
|
591
618
|
summary: string;
|
|
592
619
|
description: string;
|
|
593
620
|
responses: {
|
|
@@ -609,6 +636,7 @@ declare const callbackSSOSAML: (options?: SSOOptions) => better_call0.StrictEndp
|
|
|
609
636
|
metadata: {
|
|
610
637
|
isAction: boolean;
|
|
611
638
|
openapi: {
|
|
639
|
+
operationId: string;
|
|
612
640
|
summary: string;
|
|
613
641
|
description: string;
|
|
614
642
|
responses: {
|
|
@@ -639,6 +667,7 @@ declare const acsEndpoint: (options?: SSOOptions) => better_call0.StrictEndpoint
|
|
|
639
667
|
metadata: {
|
|
640
668
|
isAction: boolean;
|
|
641
669
|
openapi: {
|
|
670
|
+
operationId: string;
|
|
642
671
|
summary: string;
|
|
643
672
|
description: string;
|
|
644
673
|
responses: {
|
|
@@ -666,4 +695,4 @@ declare function sso<O extends SSOOptions>(options?: O | undefined): {
|
|
|
666
695
|
endpoints: SSOEndpoints;
|
|
667
696
|
};
|
|
668
697
|
//#endregion
|
|
669
|
-
export { SSOOptions as i, OIDCConfig as n, SAMLConfig as r, sso as t };
|
|
698
|
+
export { SSOProvider as a, SSOOptions as i, OIDCConfig as n, SAMLConfig as r, sso as t };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as SSOOptions, n as OIDCConfig, r as SAMLConfig, t as sso } from "./index-
|
|
2
|
-
export { OIDCConfig, SAMLConfig, SSOOptions, sso };
|
|
1
|
+
import { a as SSOProvider, i as SSOOptions, n as OIDCConfig, r as SAMLConfig, t as sso } from "./index-DOws6HlV.mjs";
|
|
2
|
+
export { OIDCConfig, SAMLConfig, SSOOptions, SSOProvider, sso };
|