@mastra/auth-cloud 1.2.5 → 1.2.6-alpha.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/_types/@internal_auth/dist/ee/interfaces/permissions.generated.d.ts +9 -1
- package/dist/_types/@internal_auth/dist/provider/index.d.ts +1 -1
- package/dist/_types/@internal_auth/package.json +1 -0
- package/dist/auth-provider.d.ts +4 -4
- package/dist/index.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/rbac/rbac-provider.d.ts +1 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createHash
|
|
1
|
+
import { createHash } from "crypto";
|
|
2
2
|
//#region src/error.ts
|
|
3
3
|
/**
|
|
4
4
|
* Error class for authentication-related failures.
|
|
@@ -278,7 +278,7 @@ function clearPKCECookie() {
|
|
|
278
278
|
* Per RFC 7636: code_verifier must be 43-128 characters using unreserved characters.
|
|
279
279
|
*/
|
|
280
280
|
function generateCodeVerifier() {
|
|
281
|
-
return
|
|
281
|
+
return Buffer.from(globalThis.crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(32))).toString("base64url");
|
|
282
282
|
}
|
|
283
283
|
/**
|
|
284
284
|
* Compute the S256 code challenge from a verifier.
|
|
@@ -294,7 +294,7 @@ function computeCodeChallenge(verifier) {
|
|
|
294
294
|
* Uses 16 random bytes encoded as base64url (22 characters).
|
|
295
295
|
*/
|
|
296
296
|
function generateState() {
|
|
297
|
-
return
|
|
297
|
+
return Buffer.from(globalThis.crypto.getRandomValues(/* @__PURE__ */ new Uint8Array(16))).toString("base64url");
|
|
298
298
|
}
|
|
299
299
|
//#endregion
|
|
300
300
|
//#region src/oauth/oauth.ts
|
|
@@ -983,7 +983,7 @@ var MastraAuthProvider = class extends MastraBase {
|
|
|
983
983
|
}
|
|
984
984
|
};
|
|
985
985
|
//#endregion
|
|
986
|
-
//#region ../../packages/_internals/auth/dist/ee-
|
|
986
|
+
//#region ../../packages/_internals/auth/dist/ee-btY6vXIW.js
|
|
987
987
|
/**
|
|
988
988
|
* FGA enforcement utility for checking fine-grained authorization.
|
|
989
989
|
*
|
|
@@ -1000,6 +1000,7 @@ const RESOURCE_EXPANSIONS = { stored: [
|
|
|
1000
1000
|
"stored-prompt-blocks",
|
|
1001
1001
|
"stored-scorers",
|
|
1002
1002
|
"stored-skills",
|
|
1003
|
+
"stored-workflows",
|
|
1003
1004
|
"stored-workspaces"
|
|
1004
1005
|
] };
|
|
1005
1006
|
/**
|