oidcbridge 0.0.1 → 0.0.3
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/index.d.ts +8 -2
- package/dist/index.js +1 -2
- package/package.json +40 -9
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export interface OidcClaims {
|
|
2
|
+
iss: string;
|
|
3
|
+
sub: string;
|
|
4
|
+
aud: string | readonly string[];
|
|
5
|
+
email?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function bridgeOidcClaims(claims: OidcClaims): Readonly<OidcClaims>;
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export const oidcbridge = "0.0.1";
|
|
1
|
+
function r(e){if(!e.iss||!e.sub||!e.aud)throw new TypeError("OIDC issuer, subject, and audience are required.");return Object.freeze({...e,...Array.isArray(e.aud)?{aud:Object.freeze([...e.aud])}:{}})}export{r as bridgeOidcClaims};
|
package/package.json
CHANGED
|
@@ -1,20 +1,51 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oidcbridge",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "Small, framework-neutral primitives for bridging OpenID Connect providers to identity systems.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"default": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"README.md"
|
|
18
|
+
],
|
|
10
19
|
"sideEffects": false,
|
|
11
|
-
"scripts": {
|
|
12
|
-
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "tsc --project tsconfig.json",
|
|
22
|
+
"postbuild": "npm run dist --prefix \"$npm_config_local_prefix\" -- \"$PWD\"",
|
|
23
|
+
"prepack": "npm run build",
|
|
24
|
+
"prepublishOnly": "npm run build"
|
|
25
|
+
},
|
|
26
|
+
"keywords": [
|
|
27
|
+
"auth",
|
|
28
|
+
"authentication",
|
|
29
|
+
"oidc",
|
|
30
|
+
"openid-connect",
|
|
31
|
+
"identity",
|
|
32
|
+
"bridge"
|
|
33
|
+
],
|
|
13
34
|
"homepage": "https://signway.dev/",
|
|
14
35
|
"author": "Mosanic <dev@mosanic.io>",
|
|
15
36
|
"license": "MIT",
|
|
16
|
-
"engines": {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"
|
|
37
|
+
"engines": {
|
|
38
|
+
"node": ">=20"
|
|
39
|
+
},
|
|
40
|
+
"publishConfig": {
|
|
41
|
+
"access": "public"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"typescript": "^5.9.3"
|
|
45
|
+
},
|
|
46
|
+
"repository": {
|
|
47
|
+
"type": "git",
|
|
48
|
+
"url": "git+https://github.com/mosanic/mosa-platform.git",
|
|
49
|
+
"directory": "packages/oidcbridge"
|
|
50
|
+
}
|
|
20
51
|
}
|