API: Add .well-known/oauth-authorization-server route handler #808 #3943

This commit also adds an /api/v1/oauth/logout endpoint that allows
clients to delete their sessions (access tokens) as needed.

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2024-01-08 14:53:39 +01:00
parent f8e0615cc8
commit 0e4d81853c
33 changed files with 555 additions and 183 deletions

View File

@@ -17,9 +17,10 @@ import (
// DeleteFile removes a file from storage.
//
// Request Parameters:
// - uid: string Photo UID as returned by the API
// - file_uid: string File UID as returned by the API
// The request parameters are:
//
// - uid: string Photo UID as returned by the API
// - file_uid: string File UID as returned by the API
//
// DELETE /api/v1/photos/:uid/files/:file_uid
func DeleteFile(router *gin.RouterGroup) {