mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Refactor auth flow
Reimplement some node-oauth2-server methods to remove hacky code needed by our external login workflow
This commit is contained in:
parent
cae2df6bdc
commit
f43db2f46e
24 changed files with 487 additions and 255 deletions
|
@ -29,7 +29,7 @@ import { doesVideoChannelIdExist, doesVideoExist, doesVideoPlaylistExist, VideoP
|
|||
import { CONSTRAINTS_FIELDS } from '../../../initializers/constants'
|
||||
import { VideoPlaylistElementModel } from '../../../models/video/video-playlist-element'
|
||||
import { MVideoPlaylist } from '../../../types/models/video/video-playlist'
|
||||
import { authenticatePromiseIfNeeded } from '../../oauth'
|
||||
import { authenticatePromiseIfNeeded } from '../../auth'
|
||||
import { areValidationErrors } from '../utils'
|
||||
|
||||
const videoPlaylistsAddValidator = getCommonPlaylistEditAttributes().concat([
|
||||
|
|
|
@ -54,7 +54,7 @@ import { isLocalVideoAccepted } from '../../../lib/moderation'
|
|||
import { Hooks } from '../../../lib/plugins/hooks'
|
||||
import { AccountModel } from '../../../models/account/account'
|
||||
import { VideoModel } from '../../../models/video/video'
|
||||
import { authenticatePromiseIfNeeded } from '../../oauth'
|
||||
import { authenticatePromiseIfNeeded } from '../../auth'
|
||||
import { areValidationErrors } from '../utils'
|
||||
|
||||
const videosAddValidator = getCommonVideoEditAttributes().concat([
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue