Compare commits

...

3 Commits

Author SHA1 Message Date
Yang Luo
086859d1ce feat: change User.Avatar length back to 500 2025-05-18 09:47:56 +08:00
Yang Luo
9afaf5d695 feat: increase User.Avatar length to 1000 2025-05-17 19:59:17 +08:00
DacongDA
521f90a603 feat: fix access_token endpoint cannot read clientId in form when using device code flow (#3800) 2025-05-17 18:53:38 +08:00

View File

@@ -177,10 +177,6 @@ func (c *ApiController) GetOAuthToken() {
clientId, clientSecret, _ = c.Ctx.Request.BasicAuth()
}
if grantType == "urn:ietf:params:oauth:grant-type:device_code" {
clientId, clientSecret, _ = c.Ctx.Request.BasicAuth()
}
if len(c.Ctx.Input.RequestBody) != 0 && grantType != "urn:ietf:params:oauth:grant-type:device_code" {
// If clientId is empty, try to read data from RequestBody
var tokenRequest TokenRequest