@bostonuniversity/shibboleth-sp 1.0.2 → 1.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/cjs/index.js +11718 -4781
- package/dist/cjs/index.js.map +4 -4
- package/dist/esm/HandlerSp.js +30 -1
- package/dist/esm/HandlerSp.js.map +1 -1
- package/dist/esm/Http.js +17 -1
- package/dist/esm/Http.js.map +1 -1
- package/dist/esm/index.js +11714 -4780
- package/dist/esm/index.js.map +4 -4
- package/dist/types/HandlerSp.d.ts +7 -0
- package/dist/types/Http.d.ts +6 -0
- package/package.json +1 -2
|
@@ -8,6 +8,13 @@ export declare enum AUTH_PATHS {
|
|
|
8
8
|
FAVICON = "/favicon.ico"
|
|
9
9
|
}
|
|
10
10
|
export declare const APP_AUTHORIZATION_HEADER_NAME = "app_authorization";
|
|
11
|
+
/**
|
|
12
|
+
* These are the headers whose values are asserted by the shibboleth handler logic.
|
|
13
|
+
* They are exported here so consumers can share the same trust-boundary definition.
|
|
14
|
+
*
|
|
15
|
+
* Configured login, logout, and custom header names complete the set at runtime.
|
|
16
|
+
*/
|
|
17
|
+
export declare const SP_OWNED_HEADER_NAMES: string[];
|
|
11
18
|
/**
|
|
12
19
|
* This is the sp "switchboard operator" for origin request traffic. It will perform all saml SP operations for ensuring
|
|
13
20
|
* that the user bears JWT proof of saml authentication, else it drives the authentication flow with the IDP.
|
package/dist/types/Http.d.ts
CHANGED
|
@@ -64,6 +64,12 @@ export declare const Headers: (request: IRequest | IResponse) => IHeaders;
|
|
|
64
64
|
* @returns
|
|
65
65
|
*/
|
|
66
66
|
export declare const addHeader: (obj: IRequest | IResponse, keyname: string, value: string) => void;
|
|
67
|
+
/**
|
|
68
|
+
* Removes a header regardless of its value. Request removals are recorded in headerActivity.
|
|
69
|
+
* @param obj
|
|
70
|
+
* @param keyname
|
|
71
|
+
*/
|
|
72
|
+
export declare const removeHeader: (obj: IRequest | IResponse, keyname: string) => void;
|
|
67
73
|
/**
|
|
68
74
|
* Extracts the host header value from an HTTP request.
|
|
69
75
|
* @param request The HTTP request object
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bostonuniversity/shibboleth-sp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "A nodejs typescript library that provides all service provider functionality for authenticating with a shibboleth IDP",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
"build:esm": "tsc",
|
|
13
13
|
"build:cjs": "tsc --module CommonJS --outdir dist/cjs",
|
|
14
14
|
"pack": "npm run build && npm pack --pack-destination .",
|
|
15
|
-
"publish": "npm run pack && npm publish ./@bostonuniversity-shibboleth-sp-1.0.2.tgz --access public",
|
|
16
15
|
"watch": "tsc -w",
|
|
17
16
|
"test": "jest --silent"
|
|
18
17
|
},
|