mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Support OAuth OOB
This commit is contained in:
parent
e45ff80067
commit
ddae4f408a
1 changed files with 4 additions and 0 deletions
|
|
@ -209,6 +209,10 @@ const oauthAuthorizeController: AppController = async (c) => {
|
|||
relays: bunker.searchParams.getAll('relay'),
|
||||
});
|
||||
|
||||
if (redirectUri === 'urn:ietf:wg:oauth:2.0:oob') {
|
||||
return c.text(token);
|
||||
}
|
||||
|
||||
const url = addCodeToRedirectUri(redirectUri, token);
|
||||
|
||||
return c.redirect(url);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue