Add userinfo.login

This commit is contained in:
Melon 2024-02-14 23:59:39 +00:00
parent a86ae8b4d5
commit bc2c837278
Signed by: melon
GPG Key ID: 6C9D970C50D26A25

View File

@ -220,6 +220,7 @@ func NewHttpServer(conf Conf, db *database.DB, signingKey mjwt.Signer) *http.Ser
}
if claims["username"] {
m["preferred_username"] = info.UserInfo["preferred_username"]
m["login"] = info.UserInfo["login"]
}
if claims["profile"] {
m["profile"] = info.UserInfo["profile"]