@oatscenter/trellis 0.100.0-rc.16 → 0.100.0-rc.17
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/auth/browser/oauth.d.ts
CHANGED
|
@@ -71,7 +71,6 @@ export declare class BrowserOAuthClient {
|
|
|
71
71
|
issuer: string;
|
|
72
72
|
clientId: string;
|
|
73
73
|
credentialHandle: string;
|
|
74
|
-
loopbackDevelopment?: boolean;
|
|
75
74
|
}): Promise<Result<BrowserOAuthClient, AuthError>>;
|
|
76
75
|
/** Revoke this app's refresh family and clear custody; does not log out of the Portal. */
|
|
77
76
|
revoke(): Promise<Result<void, AuthError>>;
|
package/auth/browser/oauth.js
CHANGED
|
@@ -69,15 +69,14 @@ export class BrowserOAuthClient {
|
|
|
69
69
|
static async open(options) {
|
|
70
70
|
try {
|
|
71
71
|
const issuer = new URL(options.issuer);
|
|
72
|
+
// Plain HTTP only reaches this machine, which browsers already trust.
|
|
72
73
|
const loopback = ["localhost", "127.0.0.1", "[::1]"].includes(issuer.hostname);
|
|
73
74
|
if (issuer.username ||
|
|
74
75
|
issuer.password ||
|
|
75
76
|
issuer.hash ||
|
|
76
77
|
issuer.search ||
|
|
77
78
|
(issuer.protocol !== "https:" &&
|
|
78
|
-
!(
|
|
79
|
-
loopback &&
|
|
80
|
-
issuer.protocol === "http:")))
|
|
79
|
+
!(loopback && issuer.protocol === "http:")))
|
|
81
80
|
return err(new AuthError({ reason: "InvalidIssuer" }));
|
|
82
81
|
const response = await fetch(`${issuer.href.replace(/\/+$/, "")}/.well-known/oauth-authorization-server`, {
|
|
83
82
|
redirect: "error",
|
package/client_connect.d.ts
CHANGED
|
@@ -13,7 +13,6 @@ export type ClientAuthOptions = {
|
|
|
13
13
|
/** Local multi-account slot; defaults to the registered client ID. */
|
|
14
14
|
credentialHandle?: string;
|
|
15
15
|
redirectTo: string;
|
|
16
|
-
loopbackDevelopment?: boolean;
|
|
17
16
|
currentUrl?: string;
|
|
18
17
|
};
|
|
19
18
|
/** Required authorization redirect, returned to the application's own navigation owner. */
|
package/client_connect.js
CHANGED
|
@@ -24,7 +24,6 @@ export function connectClientWithDeps(args, deps) {
|
|
|
24
24
|
issuer: args.trellisUrl,
|
|
25
25
|
clientId: args.auth.clientId,
|
|
26
26
|
credentialHandle: args.auth.credentialHandle ?? args.auth.clientId,
|
|
27
|
-
loopbackDevelopment: args.auth.loopbackDevelopment,
|
|
28
27
|
})).take();
|
|
29
28
|
if (isErr(opened))
|
|
30
29
|
return Result.err(opened.error);
|
package/package.json
CHANGED
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@nats-io/obj": "^3.4.0",
|
|
52
52
|
"@nats-io/transport-node": "^3.4.0",
|
|
53
53
|
"@noble/hashes": "1.8.0",
|
|
54
|
-
"@oatscenter/result": "0.100.0-rc.
|
|
54
|
+
"@oatscenter/result": "0.100.0-rc.17",
|
|
55
55
|
"@opentelemetry/api": "^1.9.1",
|
|
56
56
|
"@opentelemetry/context-async-hooks": "~2.11.0",
|
|
57
57
|
"@opentelemetry/core": "~2.11.0",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"uqr": "0.1.3",
|
|
71
71
|
"zod": "^4.3.6"
|
|
72
72
|
},
|
|
73
|
-
"version": "0.100.0-rc.
|
|
73
|
+
"version": "0.100.0-rc.17",
|
|
74
74
|
"type": "module",
|
|
75
75
|
"license": "Apache-2.0",
|
|
76
76
|
"publishConfig": {
|