@better-auth/sso 1.5.0-beta.9 → 1.5.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/README.md +17 -0
- package/dist/client.d.mts +8 -2
- package/dist/client.mjs +7 -2
- package/dist/client.mjs.map +1 -0
- package/dist/{index-78tha8qZ.d.mts → index-BQp9TZiG.d.mts} +494 -63
- package/dist/index.d.mts +56 -2
- package/dist/index.mjs +1505 -627
- package/dist/index.mjs.map +1 -0
- package/package.json +34 -30
- package/.turbo/turbo-build.log +0 -16
- package/src/client.ts +0 -25
- package/src/constants.ts +0 -58
- package/src/domain-verification.test.ts +0 -551
- package/src/index.ts +0 -253
- package/src/linking/index.ts +0 -2
- package/src/linking/org-assignment.test.ts +0 -325
- package/src/linking/org-assignment.ts +0 -169
- package/src/linking/types.ts +0 -10
- package/src/oidc/discovery.test.ts +0 -1157
- package/src/oidc/discovery.ts +0 -494
- package/src/oidc/errors.ts +0 -92
- package/src/oidc/index.ts +0 -31
- package/src/oidc/types.ts +0 -219
- package/src/oidc.test.ts +0 -688
- package/src/routes/domain-verification.ts +0 -275
- package/src/routes/sso.ts +0 -2709
- package/src/saml/algorithms.test.ts +0 -449
- package/src/saml/algorithms.ts +0 -338
- package/src/saml/assertions.test.ts +0 -239
- package/src/saml/assertions.ts +0 -62
- package/src/saml/index.ts +0 -13
- package/src/saml/parser.ts +0 -56
- package/src/saml-state.ts +0 -78
- package/src/saml.test.ts +0 -4170
- package/src/types.ts +0 -357
- package/src/utils.ts +0 -41
- package/tsconfig.json +0 -14
- package/tsdown.config.ts +0 -8
- package/vitest.config.ts +0 -3
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Better Auth SSO Plugin
|
|
2
|
+
|
|
3
|
+
Single Sign-On plugin for [Better Auth](https://www.better-auth.com) — add SAML and OIDC enterprise SSO to your application.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @better-auth/sso
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Documentation
|
|
12
|
+
|
|
13
|
+
For full documentation, visit [better-auth.com/docs/plugins/sso](https://www.better-auth.com/docs/plugins/sso).
|
|
14
|
+
|
|
15
|
+
## License
|
|
16
|
+
|
|
17
|
+
MIT
|
package/dist/client.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./index-BQp9TZiG.mjs";
|
|
2
|
+
import { SSOPlugin } from "./index.mjs";
|
|
2
3
|
|
|
3
4
|
//#region src/client.d.ts
|
|
4
5
|
interface SSOClientOptions {
|
|
@@ -15,6 +16,11 @@ declare const ssoClient: <CO extends SSOClientOptions>(options?: CO | undefined)
|
|
|
15
16
|
} ? true : false;
|
|
16
17
|
};
|
|
17
18
|
}>;
|
|
19
|
+
pathMethods: {
|
|
20
|
+
"/sso/providers": "GET";
|
|
21
|
+
"/sso/get-provider": "GET";
|
|
22
|
+
};
|
|
18
23
|
};
|
|
19
24
|
//#endregion
|
|
20
|
-
export { ssoClient };
|
|
25
|
+
export { ssoClient };
|
|
26
|
+
//# sourceMappingURL=client.d.mts.map
|
package/dist/client.mjs
CHANGED
|
@@ -2,9 +2,14 @@
|
|
|
2
2
|
const ssoClient = (options) => {
|
|
3
3
|
return {
|
|
4
4
|
id: "sso-client",
|
|
5
|
-
$InferServerPlugin: {}
|
|
5
|
+
$InferServerPlugin: {},
|
|
6
|
+
pathMethods: {
|
|
7
|
+
"/sso/providers": "GET",
|
|
8
|
+
"/sso/get-provider": "GET"
|
|
9
|
+
}
|
|
6
10
|
};
|
|
7
11
|
};
|
|
8
12
|
|
|
9
13
|
//#endregion
|
|
10
|
-
export { ssoClient };
|
|
14
|
+
export { ssoClient };
|
|
15
|
+
//# sourceMappingURL=client.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.mjs","names":[],"sources":["../src/client.ts"],"sourcesContent":["import type { BetterAuthClientPlugin } from \"better-auth/client\";\nimport type { SSOPlugin } from \"./index\";\n\ninterface SSOClientOptions {\n\tdomainVerification?:\n\t\t| {\n\t\t\t\tenabled: boolean;\n\t\t }\n\t\t| undefined;\n}\n\nexport const ssoClient = <CO extends SSOClientOptions>(\n\toptions?: CO | undefined,\n) => {\n\treturn {\n\t\tid: \"sso-client\",\n\t\t$InferServerPlugin: {} as SSOPlugin<{\n\t\t\tdomainVerification: {\n\t\t\t\tenabled: CO[\"domainVerification\"] extends { enabled: true }\n\t\t\t\t\t? true\n\t\t\t\t\t: false;\n\t\t\t};\n\t\t}>,\n\t\tpathMethods: {\n\t\t\t\"/sso/providers\": \"GET\",\n\t\t\t\"/sso/get-provider\": \"GET\",\n\t\t},\n\t} satisfies BetterAuthClientPlugin;\n};\n"],"mappings":";AAWA,MAAa,aACZ,YACI;AACJ,QAAO;EACN,IAAI;EACJ,oBAAoB,EAAE;EAOtB,aAAa;GACZ,kBAAkB;GAClB,qBAAqB;GACrB;EACD"}
|