mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-06-30 20:39:46 +02:00
fix: add SAML to Composio auth scheme enum
- Add 'SAML' to ZAuthScheme enum in types.ts to support SAML authentication - Add SAML case to getAuthMethodName in ToolkitAuthModal for proper display - Fixes ZodError when Composio API returns toolkits with SAML auth schemes - Resolves 500 error when fetching Composio toolkits
This commit is contained in:
parent
3185772080
commit
9aa9a87f57
2 changed files with 3 additions and 0 deletions
|
|
@ -312,6 +312,8 @@ export function ToolkitAuthModal({
|
||||||
return 'Bearer Token';
|
return 'Bearer Token';
|
||||||
case 'BASIC':
|
case 'BASIC':
|
||||||
return 'Basic Auth';
|
return 'Basic Auth';
|
||||||
|
case 'SAML':
|
||||||
|
return 'SAML';
|
||||||
default:
|
default:
|
||||||
return authScheme.toLowerCase().replace('_', ' ');
|
return authScheme.toLowerCase().replace('_', ' ');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@ export const ZAuthScheme = z.enum([
|
||||||
'NO_AUTH',
|
'NO_AUTH',
|
||||||
'OAUTH1',
|
'OAUTH1',
|
||||||
'OAUTH2',
|
'OAUTH2',
|
||||||
|
'SAML',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
export const ZConnectedAccountStatus = z.enum([
|
export const ZConnectedAccountStatus = z.enum([
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue