Add ability for auth plugins to hook tokens validity
authorChocobozzz <me@florianbigard.com>
Fri, 24 Apr 2020 09:33:01 +0000 (11:33 +0200)
committerChocobozzz <chocobozzz@cpy.re>
Mon, 4 May 2020 14:21:39 +0000 (16:21 +0200)
commite307e4fce39853d445d086f92b8c556c363ee15d
tree0f3faaf3c73222db0fb55b72260c787aeeeb05eb
parente1c5503114deef954731904695cd40dccfcef555
Add ability for auth plugins to hook tokens validity
16 files changed:
server/controllers/api/users/token.ts
server/helpers/activitypub.ts
server/lib/activitypub/send/send-create.ts
server/lib/activitypub/send/utils.ts
server/lib/auth.ts
server/lib/job-queue/handlers/utils/activitypub-http-utils.ts
server/lib/oauth-model.ts
server/lib/plugins/plugin-manager.ts
server/models/oauth/oauth-token.ts
server/tests/fixtures/peertube-plugin-test-id-pass-auth-two/main.js
server/tests/plugins/id-and-pass-auth.ts
server/typings/express.ts
shared/extra-utils/users/login.ts
shared/models/activitypub/context.ts [new file with mode: 0644]
shared/models/plugins/register-server-auth.model.ts
shared/models/server/job.model.ts