@declarion/react 0.209.0 → 0.211.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/dist-lib/api/oauth.js
CHANGED
|
@@ -3,10 +3,12 @@ import { callHandler as e } from "./client.js";
|
|
|
3
3
|
async function t(t) {
|
|
4
4
|
return e("oauth.authorization_continue", { transaction_id: t });
|
|
5
5
|
}
|
|
6
|
-
async function n(t, n) {
|
|
6
|
+
async function n(t, n, r) {
|
|
7
7
|
return e("oauth.authorization_decide", {
|
|
8
8
|
transaction_id: t,
|
|
9
|
-
decision: n
|
|
9
|
+
decision: n,
|
|
10
|
+
tenant_id: r.tenant_id ?? "",
|
|
11
|
+
scopes: r.scopes ?? []
|
|
10
12
|
});
|
|
11
13
|
}
|
|
12
14
|
export { t as continueAuthorization, n as decideAuthorization };
|
|
@@ -52,10 +52,10 @@ function y() {
|
|
|
52
52
|
C
|
|
53
53
|
]);
|
|
54
54
|
async function M(e) {
|
|
55
|
-
if (!A) {
|
|
55
|
+
if (!A && E) {
|
|
56
56
|
j(!0);
|
|
57
57
|
try {
|
|
58
|
-
let t = await c(C, e);
|
|
58
|
+
let t = await c(C, e, E);
|
|
59
59
|
if (t.redirect_to) {
|
|
60
60
|
window.location.assign(t.redirect_to);
|
|
61
61
|
return;
|
|
@@ -111,6 +111,18 @@ function y() {
|
|
|
111
111
|
"data-testid": "oauth-consent-client",
|
|
112
112
|
children: E.client_name
|
|
113
113
|
}),
|
|
114
|
+
E.tenant_name && /* @__PURE__ */ m("p", {
|
|
115
|
+
className: "text-sm",
|
|
116
|
+
"data-testid": "oauth-consent-tenant",
|
|
117
|
+
children: [
|
|
118
|
+
y("oauth.consent.tenant", "You sign in to:"),
|
|
119
|
+
" ",
|
|
120
|
+
/* @__PURE__ */ p("span", {
|
|
121
|
+
className: "font-semibold",
|
|
122
|
+
children: E.tenant_name
|
|
123
|
+
})
|
|
124
|
+
]
|
|
125
|
+
}),
|
|
114
126
|
/* @__PURE__ */ p("p", {
|
|
115
127
|
className: "text-muted-foreground text-sm",
|
|
116
128
|
children: y("oauth.consent.asks", "This application asks to sign you in and to receive:")
|