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"
)
// 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
func OAuthAuthorize(router *gin.RouterGroup) {
@@ -38,7 +39,7 @@ func OAuthAuthorize(router *gin.RouterGroup) {
return
}
// TODO
// TODO: see https://github.com/photoprism/photoprism/issues/4368
// Send response.
c.JSON(http.StatusMethodNotAllowed, gin.H{"status": StatusFailed})