Haufe-Lexware / wicked.haufe.io

An API Management system based on Mashape Kong
http://wicked.haufe.io
Other
121 stars 37 forks source link

Chrome/FireFox: wicked UI does not accept any redirect URIs with custom schemes #215

Closed DonMartin76 closed 5 years ago

DonMartin76 commented 5 years ago

With Chrome and Firefox you cannot register redirect URIs with custom schemes; they are rejected with the following error message: "Redirect URI is a valid URL, but must contain a host. Please check documentation."

With Safari, it works as expected.

Background: new URL('myscheme://localhost/callback') is not interpreted to contain a host property on FireFox and Chrome, but on Safari it is (and is also in node.js). The parsing of the URL has to be changed to always support custom schemes, on all browsers.