Support extenal web applications in PKCE app login
J
Joseph Henry
Currently in the authentication flow added for desktop applications (https://github.com/cgwire/kitsu/pull/2253, https://github.com/cgwire/zou/pull/1268), the app-login code is transferred to the listening service locally on http://127.0.0.1:<port>/?code=…&state=…
This is useful for a desktop app running locally but for any external web app hosted on another origin we can't modify the localhost callback url.
A fancy way to add this would be to have an administrator interface section to create/modify/delete custom registered applications and define their client_id, name and redirect_uri for example like :
client_id: my_app
name: My App
redirect_uri: https://my.app/api/auth/callback