feat: return "Active: false" for expired token in IntrospectToken() (#3714)

This commit is contained in:
DacongDA
2025-04-08 23:20:44 +08:00
committed by GitHub
parent b3bafe8402
commit c11f013e04

View File

@ -334,6 +334,12 @@ func (c *ApiController) IntrospectToken() {
c.ServeJSON()
return
}
if token.ExpiresIn <= 0 {
c.Data["json"] = &object.IntrospectionResponse{Active: false}
c.ServeJSON()
return
}
}
var introspectionResponse object.IntrospectionResponse