Skip to content

Commit

Permalink
feat: Enforce custom auth userId value (#457)
Browse files Browse the repository at this point in the history
* feat: Enforce custom auth userId value

* chore: Remove custom_auth_token

* feat: Prefix userId with auth type

* chore: Update auth tests

* chore: Update custom auth docs link
  • Loading branch information
johnjcsmith authored Jan 4, 2025
1 parent 9a58718 commit 8deb5db
Show file tree
Hide file tree
Showing 13 changed files with 1,753 additions and 86 deletions.
2 changes: 1 addition & 1 deletion app/app/clusters/[clusterId]/settings/details/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export default function DetailsPage({
Custom Auth
</FormLabel>
<FormDescription>
Allow this cluster to be authenticated with <Link className="underline" href="https://docs.inferable.ai/pages/auth#customer-provided-secrets">custom authentication tokens</Link>.
Allow this cluster to be authenticated with <Link className="underline" href="https://docs.inferable.ai/pages/custom-auth">custom authentication tokens</Link>.
</FormDescription>
</div>
<FormControl>
Expand Down
2 changes: 1 addition & 1 deletion app/components/WorkflowList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export function RunList({ clusterId }: WorkflowListProps) {
},
query: {
test: runFilters.test ? "true" : undefined,
userId: (runToggle === "mine" ? userId : undefined) ?? undefined,
userId: (runToggle === "mine" ? `clerk:${userId}` : undefined) ?? undefined,
limit: Math.min(limit, 500), // Ensure limit doesn't exceed 500
configId: runFilters.configId,
},
Expand Down
1 change: 1 addition & 0 deletions control-plane/drizzle/0200_organic_terror.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE "workflows" DROP COLUMN IF EXISTS "custom_auth_token";
Loading

0 comments on commit 8deb5db

Please sign in to comment.