@mastra/auth-studio 1.3.5-alpha.0 → 1.3.5-alpha.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/README.md +39 -0
- package/package.json +3 -3
package/README.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# @mastra/auth-studio
|
|
2
|
+
|
|
3
|
+
`@mastra/auth-studio` provides authentication, organizations, and role-based access control for Studio deployments backed by the Mastra shared API. Use it when a self-hosted Studio should use Mastra's hosted identity and organization services.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @mastra/auth-studio
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
Configure the shared API URL and organization for your Studio deployment.
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { MastraAuthStudio } from '@mastra/auth-studio';
|
|
17
|
+
import { Mastra } from '@mastra/core/mastra';
|
|
18
|
+
|
|
19
|
+
export const mastra = new Mastra({
|
|
20
|
+
server: {
|
|
21
|
+
auth: new MastraAuthStudio({
|
|
22
|
+
sharedApiUrl: process.env.MASTRA_SHARED_API_URL,
|
|
23
|
+
organizationId: process.env.MASTRA_ORGANIZATION_ID,
|
|
24
|
+
}),
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Documentation
|
|
30
|
+
|
|
31
|
+
- [Studio authentication](https://mastra.ai/docs/studio/auth)
|
|
32
|
+
|
|
33
|
+
## Changelog
|
|
34
|
+
|
|
35
|
+
See the [package changelog](https://github.com/mastra-ai/mastra/blob/main/auth/studio/CHANGELOG.md) for version history and release notes.
|
|
36
|
+
|
|
37
|
+
## Support
|
|
38
|
+
|
|
39
|
+
We have an [open community Discord](https://discord.gg/mastra-ai). Come and say hello and let us know if you have any questions or need any help getting things running.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/auth-studio",
|
|
3
|
-
"version": "1.3.5-alpha.
|
|
3
|
+
"version": "1.3.5-alpha.1",
|
|
4
4
|
"description": "Mastra Studio Auth integration — proxies authentication through Mastra shared API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"typescript": "^7.0.2",
|
|
29
29
|
"vitest": "4.1.10",
|
|
30
30
|
"@internal/auth": "0.0.19",
|
|
31
|
-
"@internal/
|
|
32
|
-
"@internal/
|
|
31
|
+
"@internal/types-builder": "0.0.104",
|
|
32
|
+
"@internal/lint": "0.0.129"
|
|
33
33
|
},
|
|
34
34
|
"files": [
|
|
35
35
|
"dist"
|