1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 01:39:37 +02:00
Peertube/server/core/lib/auth
Jakob Meier fc986076c9
Allow auth plugins to redirect to external url (#7179)
* Allow auth plugins to redirect to external url

Add a new optional field to `RegisterServerExternalAuthenticatedResult`,
the object passed to the `userAuthenticated` callback used by auth plugins.

The server code uses this to redirect to an external website if it is set.

Left TODO:

- This code has been tested manually but a test case is still missing.
- Here or in the plugin, the redirect urls must be limited to values configurable by admins.

* rename to URI for consistency

* add test for the new parameter

* address review comments

- correct syntax for optional parameter
- handle the case where `externalAuthToken` has query parameters included
2025-08-07 14:59:19 +02:00
..
external-auth.ts Allow auth plugins to redirect to external url (#7179) 2025-08-07 14:59:19 +02:00
oauth-model.ts Add ability to list and revoke token sessions 2025-07-30 11:42:49 +02:00
oauth.ts Add ability to list and revoke token sessions 2025-07-30 11:42:49 +02:00
tokens-cache.ts server/server -> server/core 2023-10-04 15:13:25 +02:00