Bug report
Describe the bug
currently, when unsupported keys are received, Supabase OAuth server is throwing an error such as below.
{"message":": Unrecognized key(s) in object: 'access_type', 'prompt', 'audience'"}
To Reproduce
To reproduce, choose 1 of the 2 solution below:
A-1. log in to retool and create an organization
A-2. create a resource from retool "Resources" tab and choose "MCP Server"
A-3. Authentication method should be OAuth2.0 as Automatic won't work.
A-4. typed Authorization URL, Token URL, Client ID, Client secret. Scopes/Audience were empty and Prompt was set as "Consent" which was default.
A-5. test won't work and gives the error above.
B-1. send the request to Supabase MCP server with access_type, prompt, audience but as empty (prompt set as "Consent")
B-2. error above should be triggered.
Expected behavior
Should be logged in; or authorized without error
Additional context
Reference: https://community.retool.com/t/anyone-tried-connecting-supabase-mcp/62838/3
Bug report
Describe the bug
currently, when unsupported keys are received, Supabase OAuth server is throwing an error such as below.
{"message":": Unrecognized key(s) in object: 'access_type', 'prompt', 'audience'"}
To Reproduce
To reproduce, choose 1 of the 2 solution below:
A-1. log in to retool and create an organization
A-2. create a resource from retool "Resources" tab and choose "MCP Server"
A-3. Authentication method should be OAuth2.0 as Automatic won't work.
A-4. typed Authorization URL, Token URL, Client ID, Client secret. Scopes/Audience were empty and Prompt was set as "Consent" which was default.
A-5. test won't work and gives the error above.
B-1. send the request to Supabase MCP server with access_type, prompt, audience but as empty (prompt set as "Consent")
B-2. error above should be triggered.
Expected behavior
Should be logged in; or authorized without error
Additional context
Reference: https://community.retool.com/t/anyone-tried-connecting-supabase-mcp/62838/3