mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 22:09:16 +01:00
Add new OAuth verification page
This commit is contained in:
parent
626b2cb311
commit
9ec3d96f9d
6 changed files with 201 additions and 3 deletions
|
|
@ -184,7 +184,15 @@ export default apiRoute(async (req, matchedRoute, extraData) => {
|
|||
|
||||
// Redirect back to application
|
||||
return Response.redirect(
|
||||
`${flow.application.redirect_uris}?code=${code}`,
|
||||
`/oauth/redirect?` +
|
||||
new URLSearchParams({
|
||||
redirect_uri: flow.application.redirect_uris,
|
||||
code,
|
||||
client_id: flow.application.client_id,
|
||||
application: flow.application.name,
|
||||
website: flow.application.website ?? "",
|
||||
scope: flow.application.scopes,
|
||||
}).toString(),
|
||||
302
|
||||
);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue