@tryghost/adapter-base-sso 0.1.2 → 0.1.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/CHANGELOG.md +6 -0
- package/build/base.d.ts +5 -1
- package/build/base.d.ts.map +1 -1
- package/build/base.js +6 -2
- package/build/base.js.map +1 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
package/build/base.d.ts
CHANGED
|
@@ -25,7 +25,11 @@ export interface SSOAdapter<Token, Lookup> {
|
|
|
25
25
|
}
|
|
26
26
|
export declare abstract class SSOBase<Token, Lookup> implements SSOAdapter<Token, Lookup> {
|
|
27
27
|
#private;
|
|
28
|
-
readonly requiredFns: readonly [
|
|
28
|
+
readonly requiredFns: readonly [
|
|
29
|
+
'getRequestCredentials',
|
|
30
|
+
'getIdentityFromCredentials',
|
|
31
|
+
'getUserForIdentity'
|
|
32
|
+
];
|
|
29
33
|
constructor();
|
|
30
34
|
/**
|
|
31
35
|
* Inject the user repository. Ghost core calls this after constructing the
|
package/build/base.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../src/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../src/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAGvC,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,cAAc;IAC7B,8EAA8E;IAC9E,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;IAChD,6DAA6D;IAC7D,QAAQ,IAAI,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,UAAU,CAAC,KAAK,EAAE,MAAM;IACvC,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC;IAC/D,0BAA0B,CAAC,WAAW,EAAE,KAAK,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACvE,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;CAC5D;AAED,8BAAsB,OAAO,CAAC,KAAK,EAAE,MAAM,CAAE,YAAW,UAAU,CAAC,KAAK,EAAE,MAAM,CAAC;;IAC/E,SAAiB,WAAW,EAAE,SAAS;QACrC,uBAAuB;QACvB,4BAA4B;QAC5B,oBAAoB;KACrB,CAAC;IAIF,cASC;IAED;;;;OAIG;IACH,iBAAiB,CAAC,cAAc,EAAE,cAAc,GAAG,IAAI,CAEtD;IAYD;;;OAGG;IACH,UAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,CAElE;IAED;;;OAGG;IACH,UAAgB,YAAY,IAAI,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,CAEnD;IAED,QAAQ,CAAC,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC;IACxE,QAAQ,CAAC,0BAA0B,CAAC,WAAW,EAAE,KAAK,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAChF,QAAQ,CAAC,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;CACrE"}
|
package/build/base.js
CHANGED
|
@@ -3,7 +3,11 @@ export class SSOBase {
|
|
|
3
3
|
#userRepository = null;
|
|
4
4
|
constructor() {
|
|
5
5
|
Object.defineProperty(this, 'requiredFns', {
|
|
6
|
-
value: Object.freeze([
|
|
6
|
+
value: Object.freeze([
|
|
7
|
+
'getRequestCredentials',
|
|
8
|
+
'getIdentityFromCredentials',
|
|
9
|
+
'getUserForIdentity',
|
|
10
|
+
]),
|
|
7
11
|
writable: false,
|
|
8
12
|
});
|
|
9
13
|
}
|
|
@@ -18,7 +22,7 @@ export class SSOBase {
|
|
|
18
22
|
get #users() {
|
|
19
23
|
if (!this.#userRepository) {
|
|
20
24
|
throw new errors.IncorrectUsageError({
|
|
21
|
-
message: 'SSO adapter has no user repository configured. Ghost must call setUserRepository() before the adapter is used.'
|
|
25
|
+
message: 'SSO adapter has no user repository configured. Ghost must call setUserRepository() before the adapter is used.',
|
|
22
26
|
});
|
|
23
27
|
}
|
|
24
28
|
return this.#userRepository;
|
package/build/base.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.js","sourceRoot":"","sources":["../src/base.ts"],"names":[],"mappings":"AACA,OAAO,MAAM,MAAM,kBAAkB,CAAC;AA6BtC,MAAM,OAAgB,OAAO;
|
|
1
|
+
{"version":3,"file":"base.js","sourceRoot":"","sources":["../src/base.ts"],"names":[],"mappings":"AACA,OAAO,MAAM,MAAM,kBAAkB,CAAC;AA6BtC,MAAM,OAAgB,OAAO;IAO3B,eAAe,GAA0B,IAAI,CAAC;IAE9C;QACE,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,aAAa,EAAE;YACzC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC;gBACnB,uBAAuB;gBACvB,4BAA4B;gBAC5B,oBAAoB;aACrB,CAAC;YACF,QAAQ,EAAE,KAAK;SAChB,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACH,iBAAiB,CAAC,cAA8B;QAC9C,IAAI,CAAC,eAAe,GAAG,cAAc,CAAC;IACxC,CAAC;IAED,IAAI,MAAM;QACR,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,CAAC;YAC1B,MAAM,IAAI,MAAM,CAAC,mBAAmB,CAAC;gBACnC,OAAO,EACL,gHAAgH;aACnH,CAAC,CAAC;QACL,CAAC;QACD,OAAO,IAAI,CAAC,eAAe,CAAC;IAC9B,CAAC;IAED;;;OAGG;IACO,KAAK,CAAC,cAAc,CAAC,KAAa;QAC1C,OAAO,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;IACvC,CAAC;IAED;;;OAGG;IACO,KAAK,CAAC,YAAY;QAC1B,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;IAChC,CAAC;CAKF"}
|
package/package.json
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryghost/adapter-base-sso",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "The adapter-base-sso package for Ghost.",
|
|
5
|
-
"
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Ghost Foundation",
|
|
6
7
|
"repository": {
|
|
7
8
|
"type": "git",
|
|
8
9
|
"url": "git+https://github.com/TryGhost/Ghost.git",
|
|
9
10
|
"directory": "packages/adapters/sso-base"
|
|
10
11
|
},
|
|
11
|
-
"
|
|
12
|
-
|
|
12
|
+
"files": [
|
|
13
|
+
"build"
|
|
14
|
+
],
|
|
15
|
+
"type": "module",
|
|
16
|
+
"main": "build/index.js",
|
|
17
|
+
"types": "build/index.d.ts",
|
|
13
18
|
"exports": {
|
|
14
19
|
".": {
|
|
15
20
|
"types": "./build/index.d.ts",
|
|
16
21
|
"default": "./build/index.js"
|
|
17
22
|
}
|
|
18
23
|
},
|
|
19
|
-
"main": "build/index.js",
|
|
20
|
-
"types": "build/index.d.ts",
|
|
21
|
-
"files": [
|
|
22
|
-
"build"
|
|
23
|
-
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@tryghost/errors": "3.3.
|
|
25
|
+
"@tryghost/errors": "3.3.9"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"build": "tsc",
|