Skip to content

Commit 9384b41

Browse files
committed
fix OIDC
1 parent e3176df commit 9384b41

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

docs/core_concepts/28_agent_workers/index.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ GRANT SELECT, INSERT on pip_resolution_cache to agent;
3939

4040
CREATE POLICY agent ON queue TO agent USING (tag = '<x>' OR tag = '<y>');
4141
CREATE POLICY agent ON completed_job TO agent USING (true);
42+
CREATE POLICY agent
43+
ON audit
44+
FOR INSERT
45+
TO agent
46+
WITH CHECK (true);
4247

4348
```
4449

docs/core_concepts/29_oidc/index.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ Your token must be associated with an audience which identifies the intended rec
1818
If you are using a TypeScript or Python scripts, you can use the Windmill SDK to generate tokens. For other like REST or shell, you should use the REST api directly:
1919

2020
```
21-
curl -s -H "Authorization: Bearer $WM_TOKEN" \
22-
23-
"$BASE_INTERNAL_URL/api/w/$WM_WORKSPACE/oidc/token/MY_AUDIENCE"
21+
curl -s -X POST -H "Authorization: Bearer $WM_TOKEN" "$BASE_INTERNAL_URL/api/w/$WM_WORKSPACE/oidc/token/MY_AUDIENCE"
2422
```
2523

2624
### Generate the token

0 commit comments

Comments
 (0)