simov / grant

OAuth Proxy
MIT License
4.08k stars 257 forks source link

feat: support electron #275

Closed ameinhardt closed 2 years ago

ameinhardt commented 2 years ago

Would you consider adding support for electron.js apps, e.g. for authenticating without having access to redirect_uri? Tests and documentation is not completed, yet. Electron should possibly not be a default dependency

ameinhardt commented 2 years ago

Unfortunately it seems difficult to implement a proper 'server' for the handshake via cookies/redirect in electron. (https://github.com/electron/electron/issues/23865, https://github.com/electron/electron/issues/30717, https://github.com/electron/electron/issues/27895) Also, custom protocols (register*Protocol() ) with redirect seem on my tries to inherit the target cookies and keep the request 'pending' on a 302 redirect via header location.