@betterportal/auth-authress-io 0.0.1 → 10.0.1
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/lib/plugins/service-betterportal-auth-authress-io/.bp-generated/registry.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-auth-authress-io/.bp-generated/registry.js +41 -18
- package/lib/plugins/service-betterportal-auth-authress-io/.bp-generated/registry.js.map +1 -1
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/login/GET.d.ts +3 -0
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/login/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/login/GET.js +3 -0
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/login/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/login/POST.d.ts +3 -0
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/login/POST.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/login/POST.js +3 -0
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/login/POST.js.map +1 -0
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/login/_theme.bootstrap1/{index.d.ts → GET.d.ts} +2 -2
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/login/_theme.bootstrap1/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/login/_theme.bootstrap1/{index.js → GET.js} +1 -1
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/login/_theme.bootstrap1/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/login/_theme.bootstrap1/{_background.monitor.d.ts → _background.monitor.GET.d.ts} +2 -2
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/login/_theme.bootstrap1/_background.monitor.GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/login/_theme.bootstrap1/{_background.monitor.js → _background.monitor.GET.js} +1 -1
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/login/_theme.bootstrap1/_background.monitor.GET.js.map +1 -0
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/login/_theme.bootstrap1/{_nav.profile.d.ts → _nav.profile.GET.d.ts} +2 -2
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/login/_theme.bootstrap1/_nav.profile.GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/login/_theme.bootstrap1/{_nav.profile.js → _nav.profile.GET.js} +1 -1
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/login/_theme.bootstrap1/_nav.profile.GET.js.map +1 -0
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/login/_theme.embedded/{_background.monitor.d.ts → _background.monitor.GET.d.ts} +2 -2
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/login/_theme.embedded/_background.monitor.GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/login/_theme.embedded/{_background.monitor.js → _background.monitor.GET.js} +2 -2
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/login/_theme.embedded/_background.monitor.GET.js.map +1 -0
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/login/index.d.ts +1 -91
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/login/index.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/login/index.js +1 -186
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/login/index.js.map +1 -1
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/login/route.impl.d.ts +92 -0
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/login/route.impl.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/login/route.impl.js +187 -0
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/login/route.impl.js.map +1 -0
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/logout/GET.d.ts +3 -0
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/logout/GET.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/logout/GET.js +3 -0
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/logout/GET.js.map +1 -0
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/logout/index.d.ts +1 -26
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/logout/index.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/logout/index.js +1 -34
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/logout/index.js.map +1 -1
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/logout/route.impl.d.ts +27 -0
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/logout/route.impl.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/logout/route.impl.js +35 -0
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/logout/route.impl.js.map +1 -0
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/refresh/POST.d.ts +3 -0
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/refresh/POST.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/refresh/POST.js +3 -0
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/refresh/POST.js.map +1 -0
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/refresh/index.d.ts +1 -28
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/refresh/index.d.ts.map +1 -1
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/refresh/index.js +1 -86
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/refresh/index.js.map +1 -1
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/refresh/route.impl.d.ts +29 -0
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/refresh/route.impl.d.ts.map +1 -0
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/refresh/route.impl.js +87 -0
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/refresh/route.impl.js.map +1 -0
- package/lib/schemas/service-betterportal-auth-authress-io.json +1 -1
- package/lib/schemas/service-betterportal-auth-authress-io.plugin.json +1 -1
- package/package.json +8 -9
- package/bsb-tests.json +0 -14
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/login/_theme.bootstrap1/_background.monitor.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/login/_theme.bootstrap1/_background.monitor.js.map +0 -1
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/login/_theme.bootstrap1/_nav.profile.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/login/_theme.bootstrap1/_nav.profile.js.map +0 -1
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/login/_theme.bootstrap1/index.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/login/_theme.bootstrap1/index.js.map +0 -1
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/login/_theme.embedded/_background.monitor.d.ts.map +0 -1
- package/lib/plugins/service-betterportal-auth-authress-io/bp-routes/login/_theme.embedded/_background.monitor.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../../src/plugins/service-betterportal-auth-authress-io/.bp-generated/registry.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../../src/plugins/service-betterportal-auth-authress-io/.bp-generated/registry.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,eAAO,MAAM,QAAQ,EAAE,oBA2FtB,CAAC"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
// AUTO-GENERATED by BetterPortal codegen - DO NOT EDIT
|
|
2
2
|
import * as loginRoute from "../bp-routes/login/index.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
3
|
+
import * as loginGETRoute from "../bp-routes/login/GET.js";
|
|
4
|
+
import * as loginPOSTRoute from "../bp-routes/login/POST.js";
|
|
5
|
+
import * as loginBootstrap1PageGET from "../bp-routes/login/_theme.bootstrap1/GET.js";
|
|
6
|
+
import * as loginBootstrap1BackgroundMonitorGET from "../bp-routes/login/_theme.bootstrap1/_background.monitor.GET.js";
|
|
7
|
+
import * as loginBootstrap1NavProfileGET from "../bp-routes/login/_theme.bootstrap1/_nav.profile.GET.js";
|
|
8
|
+
import * as loginEmbeddedBackgroundMonitorGET from "../bp-routes/login/_theme.embedded/_background.monitor.GET.js";
|
|
7
9
|
import * as logoutRoute from "../bp-routes/logout/index.js";
|
|
10
|
+
import * as logoutGETRoute from "../bp-routes/logout/GET.js";
|
|
8
11
|
import * as refreshRoute from "../bp-routes/refresh/index.js";
|
|
12
|
+
import * as refreshPOSTRoute from "../bp-routes/refresh/POST.js";
|
|
9
13
|
export const registry = {
|
|
10
14
|
routes: [
|
|
11
15
|
{
|
|
@@ -14,12 +18,23 @@ export const registry = {
|
|
|
14
18
|
methods: ["GET", "POST"],
|
|
15
19
|
paramNames: [],
|
|
16
20
|
schemas: {
|
|
17
|
-
response:
|
|
18
|
-
query:
|
|
19
|
-
headers:
|
|
20
|
-
request:
|
|
21
|
+
response: loginGETRoute.ResponseSchema,
|
|
22
|
+
query: loginGETRoute.QuerySchema,
|
|
23
|
+
headers: loginGETRoute.HeadersSchema,
|
|
24
|
+
request: loginGETRoute.RequestSchema
|
|
21
25
|
},
|
|
22
|
-
|
|
26
|
+
methodRoutes: { GET: { method: "GET", schemas: {
|
|
27
|
+
response: loginGETRoute.ResponseSchema,
|
|
28
|
+
query: loginGETRoute.QuerySchema,
|
|
29
|
+
headers: loginGETRoute.HeadersSchema,
|
|
30
|
+
request: loginGETRoute.RequestSchema
|
|
31
|
+
}, handler: loginGETRoute.default }, POST: { method: "POST", schemas: {
|
|
32
|
+
response: loginPOSTRoute.ResponseSchema,
|
|
33
|
+
query: loginPOSTRoute.QuerySchema,
|
|
34
|
+
headers: loginPOSTRoute.HeadersSchema,
|
|
35
|
+
request: loginPOSTRoute.RequestSchema
|
|
36
|
+
}, handler: loginPOSTRoute.default } },
|
|
37
|
+
handlers: { GET: loginGETRoute.default, POST: loginPOSTRoute.default },
|
|
23
38
|
title: loginRoute.title,
|
|
24
39
|
description: loginRoute.description,
|
|
25
40
|
auth: loginRoute.auth,
|
|
@@ -30,14 +45,14 @@ export const registry = {
|
|
|
30
45
|
demoScenarios: [],
|
|
31
46
|
themeRenderers: {
|
|
32
47
|
"bootstrap1": {
|
|
33
|
-
pages: [{ rendererId: "default", type: "page", render:
|
|
48
|
+
pages: [{ rendererId: "default", type: "page", method: "GET", render: loginBootstrap1PageGET.render }],
|
|
34
49
|
components: [],
|
|
35
|
-
fragments: [{ rendererId: "background.monitor", type: "fragment", fragmentLocation: "background", fragmentId: "monitor", render:
|
|
50
|
+
fragments: [{ rendererId: "background.monitor", type: "fragment", method: "GET", fragmentLocation: "background", fragmentId: "monitor", render: loginBootstrap1BackgroundMonitorGET.render }, { rendererId: "nav.profile", type: "fragment", method: "GET", fragmentLocation: "nav", fragmentId: "profile", render: loginBootstrap1NavProfileGET.render }]
|
|
36
51
|
},
|
|
37
52
|
"embedded": {
|
|
38
53
|
pages: [],
|
|
39
54
|
components: [],
|
|
40
|
-
fragments: [{ rendererId: "background.monitor", type: "fragment", fragmentLocation: "background", fragmentId: "monitor", render:
|
|
55
|
+
fragments: [{ rendererId: "background.monitor", type: "fragment", method: "GET", fragmentLocation: "background", fragmentId: "monitor", render: loginEmbeddedBackgroundMonitorGET.render }]
|
|
41
56
|
}
|
|
42
57
|
}
|
|
43
58
|
},
|
|
@@ -47,10 +62,14 @@ export const registry = {
|
|
|
47
62
|
methods: ["GET"],
|
|
48
63
|
paramNames: [],
|
|
49
64
|
schemas: {
|
|
50
|
-
response:
|
|
51
|
-
query:
|
|
65
|
+
response: logoutGETRoute.ResponseSchema,
|
|
66
|
+
query: logoutGETRoute.QuerySchema
|
|
52
67
|
},
|
|
53
|
-
|
|
68
|
+
methodRoutes: { GET: { method: "GET", schemas: {
|
|
69
|
+
response: logoutGETRoute.ResponseSchema,
|
|
70
|
+
query: logoutGETRoute.QuerySchema
|
|
71
|
+
}, handler: logoutGETRoute.default } },
|
|
72
|
+
handlers: { GET: logoutGETRoute.default },
|
|
54
73
|
title: logoutRoute.title,
|
|
55
74
|
description: logoutRoute.description,
|
|
56
75
|
auth: logoutRoute.auth,
|
|
@@ -65,10 +84,14 @@ export const registry = {
|
|
|
65
84
|
methods: ["POST"],
|
|
66
85
|
paramNames: [],
|
|
67
86
|
schemas: {
|
|
68
|
-
response:
|
|
69
|
-
request:
|
|
87
|
+
response: refreshPOSTRoute.ResponseSchema,
|
|
88
|
+
request: refreshPOSTRoute.RequestSchema
|
|
70
89
|
},
|
|
71
|
-
|
|
90
|
+
methodRoutes: { POST: { method: "POST", schemas: {
|
|
91
|
+
response: refreshPOSTRoute.ResponseSchema,
|
|
92
|
+
request: refreshPOSTRoute.RequestSchema
|
|
93
|
+
}, handler: refreshPOSTRoute.default } },
|
|
94
|
+
handlers: { POST: refreshPOSTRoute.default },
|
|
72
95
|
title: refreshRoute.title,
|
|
73
96
|
description: refreshRoute.description,
|
|
74
97
|
auth: refreshRoute.auth,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../../src/plugins/service-betterportal-auth-authress-io/.bp-generated/registry.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,OAAO,KAAK,UAAU,MAAM,6BAA6B,CAAC;AAC1D,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../../src/plugins/service-betterportal-auth-authress-io/.bp-generated/registry.ts"],"names":[],"mappings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AE,gBAAgB,CAAC,cAAc;wBACzC,OAAO,EAAE,gBAAgB,CAAC,aAAa;qBACxC,EAAE,OAAO,EAAE,gBAAgB,CAAC,OAAO,EAAE,EAAE;YACxC,QAAQ,EAAE,EAAE,IAAI,EAAE,gBAAgB,CAAC,OAAO,EAAE;YAC5C,KAAK,EAAE,YAAY,CAAC,KAAK;YACzB,WAAW,EAAE,YAAY,CAAC,WAAW;YACrC,IAAI,EAAE,YAAY,CAAC,IAAI;YACvB,IAAI,EAAE,YAAY,CAAC,IAAI;YACvB,UAAU,EAAE,YAAY,CAAC,UAAU;YACnC,aAAa,EAAE,EAAE;YACjB,cAAc,EAAE,EAAE;SACnB;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GET.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-auth-authress-io/bp-routes/login/GET.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC5F,OAAO,EAAE,SAAS,IAAI,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GET.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-auth-authress-io/bp-routes/login/GET.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC5F,OAAO,EAAE,SAAS,IAAI,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"POST.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-auth-authress-io/bp-routes/login/POST.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC5F,OAAO,EAAE,UAAU,IAAI,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"POST.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-auth-authress-io/bp-routes/login/POST.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC5F,OAAO,EAAE,UAAU,IAAI,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsxImportSource jsx-htmx */
|
|
2
2
|
import type { HtmlRenderable } from "@betterportal/framework";
|
|
3
|
-
import type { ResponseData } from "../
|
|
3
|
+
import type { ResponseData } from "../route.impl.js";
|
|
4
4
|
export declare function render(data: ResponseData): HtmlRenderable;
|
|
5
|
-
//# sourceMappingURL=
|
|
5
|
+
//# sourceMappingURL=GET.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GET.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-auth-authress-io/bp-routes/login/_theme.bootstrap1/GET.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD,wBAAgB,MAAM,CAAC,IAAI,EAAE,YAAY,GAAG,cAAc,CAqQzD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GET.js","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-auth-authress-io/bp-routes/login/_theme.bootstrap1/GET.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAG9B,MAAM,UAAU,MAAM,CAAC,IAAkB;IACvC,IAAI,IAAI,CAAC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,OAAO,CAAC,aAAa,CAAC,EAAE,CAAC;4BACzD,MAAM,KAAK,GAAG,IAAI,EAAE,aAAa,CAAmB,eAAe,GAAG,IAAI,CAAC,CAAC;4BAC5E,IAAI,KAAK,IAAI,KAAK;gCAAE,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC;wBAC1C,CAAC;wBACD,IAAI,EAAE,YAAY,CAAC,SAAS,EAAE,GAAG,MAAM,CAAC,QAAQ,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;wBACtF,IAAI,EAAE,aAAa,EAAE,CAAC;oBACxB,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;wBACnB,SAAS,CAAC,KAAK,EAAE,OAAO,IAAI,0BAA0B,CAAC,CAAC;oBAC1D,CAAC,CAAC,CAAC;gBACL,CAAC,CAAC,GACK,EACT,0BACG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SA+EA,GACK,IACH,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsxImportSource jsx-htmx */
|
|
2
2
|
import type { HtmlRenderable } from "@betterportal/framework";
|
|
3
|
-
import type { ResponseData } from "../
|
|
3
|
+
import type { ResponseData } from "../route.impl.js";
|
|
4
4
|
export declare function render(data: ResponseData): HtmlRenderable;
|
|
5
|
-
//# sourceMappingURL=_background.monitor.d.ts.map
|
|
5
|
+
//# sourceMappingURL=_background.monitor.GET.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_background.monitor.GET.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-auth-authress-io/bp-routes/login/_theme.bootstrap1/_background.monitor.GET.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD,wBAAgB,MAAM,CAAC,IAAI,EAAE,YAAY,GAAG,cAAc,CAwEzD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_background.monitor.GET.js","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-auth-authress-io/bp-routes/login/_theme.bootstrap1/_background.monitor.GET.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAG9B,MAAM,UAAU,MAAM,CAAC,IAAkB;IACvC,IAAI,IAAI,CAAC,MAAM,KAAK,OAAO,IAAI,CAAC,IAAI,CAAC,cAAc;QAAE,OAAO,eAAW,CAAC;IAExE,OAAO,CACL,8CAC8B,EAAE,2BACP,IAAI,CAAC,cAAc,kCACZ,IAAI,CAAC,qBAAqB,IAAI,EAAE,aAE9D,iBAAQ,GAAG,EAAC,mEAAmE,GAAU,EACzF,gDAAoC,EAAE,aAAS,UAAU,gBAAY,+BAA+B,aAAS,MAAM,YACjH,gBAAO,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,aAAa,EAAC,KAAK,EAAC,EAAE,GAAG,GAC9C,EACP,2BACG,EAAE,CAAC,GAAG,EAAE;oBACP,CAAC,GAAG,EAAE;wBACJ,MAAM,IAAI,GAAG,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC,+BAA+B,CAAuB,CAAC;wBACpG,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,OAAO,CAAC,cAAc,KAAK,GAAG;4BAAE,OAAO;wBACzD,IAAI,CAAC,OAAO,CAAC,cAAc,GAAG,GAAG,CAAC;wBAElC,MAAM,aAAa,GAAG,MAcrB,CAAC;wBAEF,MAAM,eAAe,GAAG,KAAK,IAAI,EAAE;4BACjC,OAAO,aAAa,CAAC,QAAQ,KAAK,SAAS,IAAI,aAAa,CAAC,QAAQ,KAAK,SAAS,EAAE,C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E,CAAC;wBACxB,CAAC,CAAC;wBAEF,KAAK,cAAc,EAAE,CAAC;wBACtB,MAAM,CAAC,WAAW,CAAC,GAAG,EAAE,GAAG,KAAK,cAAc,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;wBAC7D,QAAQ,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,GAAG,EAAE;4BACjD,IAAI,CAAC,QAAQ,CAAC,MAAM;gCAAE,KAAK,cAAc,EAAE,CAAC;wBAC9C,CAAC,CAAC,CAAC;oBACL,CAAC,CAAC,EAAE,CAAC;gBACP,CAAC,CAAC,GACK,IACL,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsxImportSource jsx-htmx */
|
|
2
2
|
import type { HtmlRenderable } from "@betterportal/framework";
|
|
3
|
-
import type { ResponseData } from "../
|
|
3
|
+
import type { ResponseData } from "../route.impl.js";
|
|
4
4
|
export declare function render(data: ResponseData): HtmlRenderable;
|
|
5
|
-
//# sourceMappingURL=_nav.profile.d.ts.map
|
|
5
|
+
//# sourceMappingURL=_nav.profile.GET.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_nav.profile.GET.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-auth-authress-io/bp-routes/login/_theme.bootstrap1/_nav.profile.GET.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD,wBAAgB,MAAM,CAAC,IAAI,EAAE,YAAY,GAAG,cAAc,CA4BzD"}
|
|
@@ -7,4 +7,4 @@ export function render(data) {
|
|
|
7
7
|
const detail = data.user.email || data.user.id || displayName;
|
|
8
8
|
return (_jsxs("div", { class: "dropdown", children: [_jsx("button", { class: "btn btn-sm btn-light dropdown-toggle", type: "button", "data-bs-toggle": "dropdown", "aria-expanded": "false", children: displayName }), _jsxs("ul", { class: "dropdown-menu dropdown-menu-end", children: [_jsx("li", { children: _jsx("h6", { class: "dropdown-header", children: detail }) }), _jsx("li", { children: _jsx("hr", { class: "dropdown-divider" }) }), _jsx("li", { children: _jsx("a", { class: "dropdown-item", href: "/login?action=logout", children: "Logout" }) })] })] }));
|
|
9
9
|
}
|
|
10
|
-
//# sourceMappingURL=_nav.profile.js.map
|
|
10
|
+
//# sourceMappingURL=_nav.profile.GET.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_nav.profile.GET.js","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-auth-authress-io/bp-routes/login/_theme.bootstrap1/_nav.profile.GET.tsx"],"names":[],"mappings":";AAIA,MAAM,UAAU,MAAM,CAAC,IAAkB;IACvC,IAAI,CAAC,IAAI,CAAC,eAAe,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;QACxC,OAAO,CACL,YAAG,KAAK,EAAC,wBAAwB,EAAC,IAAI,EAAC,QAAQ,wBAE3C,CACL,CAAC;IACJ,CAAC;IAED,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,SAAS,CAAC;IACnF,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,WAAW,CAAC;IAE9D,OAAO,CACL,eAAK,KAAK,EAAC,UAAU,aACnB,iBAAQ,KAAK,EAAC,sCAAsC,EAAC,IAAI,EAAC,QAAQ,oBAAgB,UAAU,mBAAe,OAAO,YAC/G,WAAW,GACL,EACT,cAAI,KAAK,EAAC,iCAAiC,aACzC,uBAAI,aAAI,KAAK,EAAC,iBAAiB,YAAE,MAAM,GAAM,GAAK,EAClD,uBAAI,aAAI,KAAK,EAAC,kBAAkB,GAAG,GAAK,EACxC,uBACI,YAAG,KAAK,EAAC,eAAe,EAAC,IAAI,EAAC,sBAAsB,uBAEhD,GACH,IACF,IACD,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** @jsxImportSource jsx-htmx */
|
|
2
|
-
export { render } from "../_theme.bootstrap1/_background.monitor.js";
|
|
3
|
-
//# sourceMappingURL=_background.monitor.d.ts.map
|
|
2
|
+
export { render } from "../_theme.bootstrap1/_background.monitor.GET.js";
|
|
3
|
+
//# sourceMappingURL=_background.monitor.GET.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_background.monitor.GET.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-auth-authress-io/bp-routes/login/_theme.embedded/_background.monitor.GET.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,MAAM,EAAE,MAAM,iDAAiD,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** @jsxImportSource jsx-htmx */
|
|
2
|
-
export { render } from "../_theme.bootstrap1/_background.monitor.js";
|
|
3
|
-
//# sourceMappingURL=_background.monitor.js.map
|
|
2
|
+
export { render } from "../_theme.bootstrap1/_background.monitor.GET.js";
|
|
3
|
+
//# sourceMappingURL=_background.monitor.GET.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_background.monitor.GET.js","sourceRoot":"","sources":["../../../../../../src/plugins/service-betterportal-auth-authress-io/bp-routes/login/_theme.embedded/_background.monitor.GET.tsx"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,MAAM,EAAE,MAAM,iDAAiD,CAAC"}
|
|
@@ -1,92 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import type { Infer } from "anyvali";
|
|
3
|
-
import { type ApiAuthRequirement, type CacheHints, type BetterPortalRouteChrome } from "@betterportal/framework";
|
|
4
|
-
export declare const QuerySchema: av.ObjectSchema<{
|
|
5
|
-
action: av.OptionalSchema<av.StringSchema>;
|
|
6
|
-
next: av.OptionalSchema<av.StringSchema>;
|
|
7
|
-
redirect: av.OptionalSchema<av.StringSchema>;
|
|
8
|
-
}>;
|
|
9
|
-
export declare const HeadersSchema: av.ObjectSchema<{}>;
|
|
10
|
-
export declare const RequestSchema: av.ObjectSchema<{
|
|
11
|
-
accessToken: av.StringSchema;
|
|
12
|
-
next: av.OptionalSchema<av.StringSchema>;
|
|
13
|
-
userId: av.OptionalSchema<av.StringSchema>;
|
|
14
|
-
name: av.OptionalSchema<av.StringSchema>;
|
|
15
|
-
email: av.OptionalSchema<av.StringSchema>;
|
|
16
|
-
picture: av.OptionalSchema<av.StringSchema>;
|
|
17
|
-
}>;
|
|
18
|
-
export declare const ResponseSchema: av.ObjectSchema<{
|
|
19
|
-
status: av.EnumSchema<readonly ["ok", "error"]>;
|
|
20
|
-
message: av.OptionalSchema<av.StringSchema>;
|
|
21
|
-
authressApiUrl: av.OptionalSchema<av.StringSchema>;
|
|
22
|
-
authressApplicationId: av.OptionalSchema<av.StringSchema>;
|
|
23
|
-
scopes: av.ArraySchema<av.StringSchema>;
|
|
24
|
-
alreadyLoggedIn: av.OptionalSchema<av.BoolSchema>;
|
|
25
|
-
loggedOut: av.OptionalSchema<av.BoolSchema>;
|
|
26
|
-
nextUrl: av.OptionalSchema<av.StringSchema>;
|
|
27
|
-
expiresInSeconds: av.OptionalSchema<av.IntSchema>;
|
|
28
|
-
user: av.OptionalSchema<av.ObjectSchema<{
|
|
29
|
-
id: av.OptionalSchema<av.StringSchema>;
|
|
30
|
-
name: av.OptionalSchema<av.StringSchema>;
|
|
31
|
-
email: av.OptionalSchema<av.StringSchema>;
|
|
32
|
-
picture: av.OptionalSchema<av.StringSchema>;
|
|
33
|
-
}>>;
|
|
34
|
-
}>;
|
|
35
|
-
export type ResponseData = Infer<typeof ResponseSchema>;
|
|
36
|
-
export declare const title = "Authress Login";
|
|
37
|
-
export declare const description = "Authenticate with Authress and store the Authress bearer token.";
|
|
38
|
-
export declare const role = "auth.login";
|
|
39
|
-
export declare const dependencies: string[];
|
|
40
|
-
export declare const chrome: BetterPortalRouteChrome;
|
|
41
|
-
export declare const auth: ApiAuthRequirement;
|
|
42
|
-
export declare const cacheHints: CacheHints;
|
|
43
|
-
export declare const handleGet: import("@betterportal/framework").RouteHandler<Record<string, string>, {
|
|
44
|
-
action?: string | undefined;
|
|
45
|
-
next?: string | undefined;
|
|
46
|
-
redirect?: string | undefined;
|
|
47
|
-
}, {}, Record<string, unknown>, {
|
|
48
|
-
status: "ok" | "error";
|
|
49
|
-
scopes: string[];
|
|
50
|
-
message?: string | undefined;
|
|
51
|
-
authressApiUrl?: string | undefined;
|
|
52
|
-
authressApplicationId?: string | undefined;
|
|
53
|
-
alreadyLoggedIn?: boolean | undefined;
|
|
54
|
-
loggedOut?: boolean | undefined;
|
|
55
|
-
nextUrl?: string | undefined;
|
|
56
|
-
expiresInSeconds?: number | undefined;
|
|
57
|
-
user?: {
|
|
58
|
-
id?: string | undefined;
|
|
59
|
-
name?: string | undefined;
|
|
60
|
-
email?: string | undefined;
|
|
61
|
-
picture?: string | undefined;
|
|
62
|
-
} | undefined;
|
|
63
|
-
}, unknown, Record<string, unknown>>;
|
|
64
|
-
export declare const handlePost: import("@betterportal/framework").RouteHandler<Record<string, string>, {
|
|
65
|
-
action?: string | undefined;
|
|
66
|
-
next?: string | undefined;
|
|
67
|
-
redirect?: string | undefined;
|
|
68
|
-
}, Record<string, string>, {
|
|
69
|
-
accessToken: string;
|
|
70
|
-
next?: string | undefined;
|
|
71
|
-
userId?: string | undefined;
|
|
72
|
-
name?: string | undefined;
|
|
73
|
-
email?: string | undefined;
|
|
74
|
-
picture?: string | undefined;
|
|
75
|
-
}, {
|
|
76
|
-
status: "ok" | "error";
|
|
77
|
-
scopes: string[];
|
|
78
|
-
message?: string | undefined;
|
|
79
|
-
authressApiUrl?: string | undefined;
|
|
80
|
-
authressApplicationId?: string | undefined;
|
|
81
|
-
alreadyLoggedIn?: boolean | undefined;
|
|
82
|
-
loggedOut?: boolean | undefined;
|
|
83
|
-
nextUrl?: string | undefined;
|
|
84
|
-
expiresInSeconds?: number | undefined;
|
|
85
|
-
user?: {
|
|
86
|
-
id?: string | undefined;
|
|
87
|
-
name?: string | undefined;
|
|
88
|
-
email?: string | undefined;
|
|
89
|
-
picture?: string | undefined;
|
|
90
|
-
} | undefined;
|
|
91
|
-
}, unknown, Record<string, unknown>>;
|
|
1
|
+
export { title, description, auth, role, dependencies, chrome, cacheHints } from "./route.impl.js";
|
|
92
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-auth-authress-io/bp-routes/login/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-auth-authress-io/bp-routes/login/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1,187 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { createHandler } from "@betterportal/framework";
|
|
3
|
-
import { resolveAuthressAppConfig, resolveAuthressBrowserConfig } from "../../index.js";
|
|
4
|
-
export const QuerySchema = av.object({
|
|
5
|
-
action: av.optional(av.string()),
|
|
6
|
-
next: av.optional(av.string()),
|
|
7
|
-
redirect: av.optional(av.string())
|
|
8
|
-
}, { unknownKeys: "strip" });
|
|
9
|
-
export const HeadersSchema = av.object({}, { unknownKeys: "strip" });
|
|
10
|
-
export const RequestSchema = av.object({
|
|
11
|
-
accessToken: av.string().minLength(1),
|
|
12
|
-
next: av.optional(av.string()),
|
|
13
|
-
userId: av.optional(av.string()),
|
|
14
|
-
name: av.optional(av.string()),
|
|
15
|
-
email: av.optional(av.string()),
|
|
16
|
-
picture: av.optional(av.string())
|
|
17
|
-
}, { unknownKeys: "strip" });
|
|
18
|
-
export const ResponseSchema = av.object({
|
|
19
|
-
status: av.enum_(["ok", "error"]),
|
|
20
|
-
message: av.optional(av.string()),
|
|
21
|
-
authressApiUrl: av.optional(av.string()),
|
|
22
|
-
authressApplicationId: av.optional(av.string()),
|
|
23
|
-
scopes: av.array(av.string()).default([]),
|
|
24
|
-
alreadyLoggedIn: av.optional(av.bool()),
|
|
25
|
-
loggedOut: av.optional(av.bool()),
|
|
26
|
-
nextUrl: av.optional(av.string()),
|
|
27
|
-
expiresInSeconds: av.optional(av.int().min(1)),
|
|
28
|
-
user: av.optional(av.object({
|
|
29
|
-
id: av.optional(av.string()),
|
|
30
|
-
name: av.optional(av.string()),
|
|
31
|
-
email: av.optional(av.string()),
|
|
32
|
-
picture: av.optional(av.string())
|
|
33
|
-
}, { unknownKeys: "strip" }))
|
|
34
|
-
}, { unknownKeys: "strip" });
|
|
35
|
-
export const title = "Authress Login";
|
|
36
|
-
export const description = "Authenticate with Authress and store the Authress bearer token.";
|
|
37
|
-
export const role = "auth.login";
|
|
38
|
-
export const dependencies = ["logout.index", "refresh.index"];
|
|
39
|
-
export const chrome = { fullScreen: true };
|
|
40
|
-
export const auth = { required: false, permissions: [] };
|
|
41
|
-
export const cacheHints = { ttlSeconds: 0, varyBy: [] };
|
|
42
|
-
function normalizeRedirect(raw) {
|
|
43
|
-
const redirect = raw?.trim();
|
|
44
|
-
if (!redirect)
|
|
45
|
-
return "/";
|
|
46
|
-
if (redirect.startsWith("http://") || redirect.startsWith("https://"))
|
|
47
|
-
return redirect;
|
|
48
|
-
return redirect.startsWith("/") ? redirect : `/${redirect}`;
|
|
49
|
-
}
|
|
50
|
-
function secondsUntilJwtExpiry(token) {
|
|
51
|
-
const [, payload] = token.split(".");
|
|
52
|
-
if (!payload)
|
|
53
|
-
return undefined;
|
|
54
|
-
try {
|
|
55
|
-
const parsed = JSON.parse(Buffer.from(payload, "base64url").toString("utf8"));
|
|
56
|
-
if (typeof parsed.exp !== "number")
|
|
57
|
-
return undefined;
|
|
58
|
-
return Math.max(1, Math.floor(parsed.exp - Date.now() / 1000));
|
|
59
|
-
}
|
|
60
|
-
catch {
|
|
61
|
-
return undefined;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
function splitScopes(value) {
|
|
65
|
-
return (value ?? "openid profile email")
|
|
66
|
-
.split(/\s+/)
|
|
67
|
-
.map((entry) => entry.trim())
|
|
68
|
-
.filter((entry) => entry.length > 0);
|
|
69
|
-
}
|
|
70
|
-
function pluginFrom(ctx) {
|
|
71
|
-
const plugin = ctx.plugin;
|
|
72
|
-
if (!plugin)
|
|
73
|
-
throw new Error("Authress plugin not available on handler context");
|
|
74
|
-
return plugin;
|
|
75
|
-
}
|
|
76
|
-
function profileValue(value) {
|
|
77
|
-
return typeof value === "string" && value.trim().length > 0 ? value.trim() : undefined;
|
|
78
|
-
}
|
|
79
|
-
export const handleGet = createHandler({ response: ResponseSchema, query: QuerySchema, headers: HeadersSchema }, async (ctx) => {
|
|
80
|
-
const appConfig = resolveAuthressAppConfig(ctx.config);
|
|
81
|
-
const nextUrl = normalizeRedirect(ctx.query.next ?? ctx.query.redirect ?? appConfig?.loginRedirectPath);
|
|
82
|
-
const browserConfig = resolveAuthressBrowserConfig(ctx.config);
|
|
83
|
-
if (ctx.query.action === "logout") {
|
|
84
|
-
const loggedOutUrl = normalizeRedirect(appConfig?.logoutRedirectPath);
|
|
85
|
-
ctx.bpHeaders?.remove("Authorization");
|
|
86
|
-
ctx.bpHeaders?.remove("X-BP-Refresh");
|
|
87
|
-
if (ctx.serviceId)
|
|
88
|
-
ctx.responseHeaders?.set("HX-Trigger", `bp:fragments:${ctx.serviceId}`);
|
|
89
|
-
return {
|
|
90
|
-
status: "ok",
|
|
91
|
-
message: "Signed out.",
|
|
92
|
-
authressApiUrl: browserConfig?.authressApiUrl,
|
|
93
|
-
authressApplicationId: browserConfig?.applicationId,
|
|
94
|
-
loggedOut: true,
|
|
95
|
-
scopes: [],
|
|
96
|
-
nextUrl: loggedOutUrl
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
if (ctx.user) {
|
|
100
|
-
return {
|
|
101
|
-
status: "ok",
|
|
102
|
-
message: "Already signed in.",
|
|
103
|
-
authressApiUrl: browserConfig?.authressApiUrl,
|
|
104
|
-
authressApplicationId: browserConfig?.applicationId,
|
|
105
|
-
alreadyLoggedIn: true,
|
|
106
|
-
scopes: [],
|
|
107
|
-
nextUrl,
|
|
108
|
-
user: {
|
|
109
|
-
id: ctx.user.sub,
|
|
110
|
-
name: ctx.user.name,
|
|
111
|
-
email: ctx.user.email,
|
|
112
|
-
picture: ctx.user.picture
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
}
|
|
116
|
-
const config = browserConfig;
|
|
117
|
-
if (!config) {
|
|
118
|
-
return { status: "error", message: "Authress browser config is missing authressApiUrl or applicationId.", scopes: [], nextUrl };
|
|
119
|
-
}
|
|
120
|
-
return {
|
|
121
|
-
status: "ok",
|
|
122
|
-
message: "Start Authress sign in.",
|
|
123
|
-
authressApiUrl: config.authressApiUrl,
|
|
124
|
-
authressApplicationId: config.applicationId,
|
|
125
|
-
scopes: splitScopes(config.scopes),
|
|
126
|
-
nextUrl
|
|
127
|
-
};
|
|
128
|
-
});
|
|
129
|
-
export const handlePost = createHandler({ response: ResponseSchema, query: QuerySchema, request: RequestSchema }, async (ctx) => {
|
|
130
|
-
const request = ctx.request;
|
|
131
|
-
const config = resolveAuthressAppConfig(ctx.config);
|
|
132
|
-
const nextUrl = normalizeRedirect(request.next ?? ctx.query.next ?? config?.loginRedirectPath);
|
|
133
|
-
if (!config) {
|
|
134
|
-
return { status: "error", message: "Authress config is missing authressApiUrl or applicationId.", scopes: [], nextUrl };
|
|
135
|
-
}
|
|
136
|
-
let user;
|
|
137
|
-
try {
|
|
138
|
-
user = await pluginFrom(ctx).verifyAuthressToken(request.accessToken, config, { tenantId: ctx.tenant.id, appId: ctx.app.id });
|
|
139
|
-
}
|
|
140
|
-
catch (error) {
|
|
141
|
-
ctx.obs?.error(error);
|
|
142
|
-
return { status: "error", message: `Authress token verification failed: ${error.message}`, scopes: [], nextUrl };
|
|
143
|
-
}
|
|
144
|
-
if (request.userId && request.userId !== user.sub) {
|
|
145
|
-
return { status: "error", message: "Authress profile subject does not match token subject.", scopes: [], nextUrl };
|
|
146
|
-
}
|
|
147
|
-
const issued = pluginFrom(ctx).issueTokenPair({
|
|
148
|
-
sub: user.sub,
|
|
149
|
-
tenantId: ctx.tenant.id,
|
|
150
|
-
appId: ctx.app.id,
|
|
151
|
-
roles: user.roles,
|
|
152
|
-
authProvider: "authress.io",
|
|
153
|
-
providerSubject: user.sub,
|
|
154
|
-
provider: user.provider,
|
|
155
|
-
name: profileValue(request.name) || user.name,
|
|
156
|
-
email: profileValue(request.email) || user.email,
|
|
157
|
-
picture: profileValue(request.picture) || user.picture
|
|
158
|
-
}, { includeRefreshToken: false });
|
|
159
|
-
ctx.bpHeaders?.set("Authorization", `Bearer ${issued.accessToken}`, {
|
|
160
|
-
locked: true,
|
|
161
|
-
expiresInSeconds: issued.accessTokenExpiresInSeconds,
|
|
162
|
-
refreshPath: "/refresh",
|
|
163
|
-
refreshBeforeSeconds: 60
|
|
164
|
-
});
|
|
165
|
-
ctx.bpHeaders?.set("X-BP-Refresh", request.accessToken, {
|
|
166
|
-
locked: true,
|
|
167
|
-
scopeToOwner: true,
|
|
168
|
-
expiresInSeconds: secondsUntilJwtExpiry(request.accessToken)
|
|
169
|
-
});
|
|
170
|
-
ctx.responseHeaders?.set("HX-Redirect", nextUrl);
|
|
171
|
-
if (ctx.serviceId)
|
|
172
|
-
ctx.responseHeaders?.set("HX-Trigger", `bp:fragments:${ctx.serviceId}`);
|
|
173
|
-
return {
|
|
174
|
-
status: "ok",
|
|
175
|
-
message: "Signed in.",
|
|
176
|
-
scopes: [],
|
|
177
|
-
nextUrl,
|
|
178
|
-
expiresInSeconds: issued.accessTokenExpiresInSeconds,
|
|
179
|
-
user: {
|
|
180
|
-
id: user.sub,
|
|
181
|
-
name: profileValue(request.name) ?? user.name,
|
|
182
|
-
email: profileValue(request.email) ?? user.email,
|
|
183
|
-
picture: profileValue(request.picture) ?? user.picture
|
|
184
|
-
}
|
|
185
|
-
};
|
|
186
|
-
});
|
|
1
|
+
export { title, description, auth, role, dependencies, chrome, cacheHints } from "./route.impl.js";
|
|
187
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-auth-authress-io/bp-routes/login/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/plugins/service-betterportal-auth-authress-io/bp-routes/login/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC"}
|