]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commit - server/models/user/user.ts
Refactor auth flow
authorChocobozzz <me@florianbigard.com>
Fri, 12 Mar 2021 14:20:46 +0000 (15:20 +0100)
committerChocobozzz <me@florianbigard.com>
Wed, 24 Mar 2021 17:18:41 +0000 (18:18 +0100)
commitf43db2f46ee50bacb402a6ef42d768694c2bc9a8
treebce2574e94d48e8602387615a07ee691e98e23e4
parentcae2df6bdc3c3590df32bf7431a617177be30429
Refactor auth flow

Reimplement some node-oauth2-server methods to remove hacky code needed by our external
login workflow
24 files changed:
client/src/app/shared/shared-main/auth/auth-interceptor.service.ts
package.json
server/controllers/api/users/index.ts
server/controllers/api/users/token.ts
server/controllers/plugins.ts
server/lib/auth/external-auth.ts [moved from server/lib/auth.ts with 61% similarity]
server/lib/auth/oauth-model.ts [moved from server/lib/oauth-model.ts with 63% similarity]
server/lib/auth/oauth.ts [new file with mode: 0644]
server/lib/auth/tokens-cache.ts [new file with mode: 0644]
server/lib/plugins/register-helpers.ts
server/middlewares/auth.ts [moved from server/middlewares/oauth.ts with 86% similarity]
server/middlewares/index.ts
server/middlewares/validators/videos/video-playlists.ts
server/middlewares/validators/videos/videos.ts
server/models/account/user-notification-setting.ts
server/models/account/user.ts
server/models/oauth/oauth-token.ts
server/tests/api/check-params/users.ts
server/tests/api/users/users.ts
server/tests/plugins/external-auth.ts
server/typings/express/index.d.ts
shared/extra-utils/miscs/sql.ts
shared/extra-utils/server/servers.ts
yarn.lock