altair-graphql / altair

✨⚡️ A feature-rich GraphQL Client for all platforms.
https://altairgraphql.dev
MIT License
5.12k stars 316 forks source link

Unable to Set Up oauth connections in MacOS Client #2552

Closed tonygauderman closed 3 months ago

tonygauderman commented 3 months ago

Bug Description: When trying to create an oauth connector in MacOS, what appears to be an browser pop up from within Altair pops up, title shows the title of the site it would be connecting to, but the page is completely black and I cannot grant the permission. This does work on the same computer as a Chrome Extension. This is to a Webex Developers API.

Screenshot:

image
imolorhe commented 3 months ago

Can you check the console if there are any errors? Cmd + Alt + I should pop the developer tools open in the desktop app

tonygauderman commented 3 months ago

There are no errors in the developer console.

imolorhe commented 3 months ago

I mean check the console in the dialog that opened. There may be some CSP or other errors that block the content from rendering. This is the google signin page rendered with the developer console open.

Screenshot 2024-06-18 at 10 35 21 PM

It looks like the issue is the CSP set in Altair blocks the scripts from non-Altair and non-google domains. I'll fix this in the next release.

tonygauderman commented 3 months ago

Get this in the current version

image
imolorhe commented 3 months ago

Yeah that checks out. That PR should fix it