API: Add link to related issue in /internal/api/oauth_authorize.go #4368

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2024-07-03 10:36:35 +02:00
parent 92dc9835af
commit 7778fbfa6a

View File

@@ -12,7 +12,8 @@ import (
"github.com/photoprism/photoprism/pkg/i18n" "github.com/photoprism/photoprism/pkg/i18n"
) )
// OAuthAuthorize is a starting point for browser-based OpenID Connect flows. // OAuthAuthorize should gather consent and authorization from resource owners when using the
// Authorization Code Grant flow, see https://github.com/photoprism/photoprism/issues/4368.
// //
// GET /api/v1/oauth/authorize // GET /api/v1/oauth/authorize
func OAuthAuthorize(router *gin.RouterGroup) { func OAuthAuthorize(router *gin.RouterGroup) {
@@ -38,7 +39,7 @@ func OAuthAuthorize(router *gin.RouterGroup) {
return return
} }
// TODO // TODO: see https://github.com/photoprism/photoprism/issues/4368
// Send response. // Send response.
c.JSON(http.StatusMethodNotAllowed, gin.H{"status": StatusFailed}) c.JSON(http.StatusMethodNotAllowed, gin.H{"status": StatusFailed})