diff --git a/controllers/token.go b/controllers/token.go index 7deb1eab..8b4ffc20 100644 --- a/controllers/token.go +++ b/controllers/token.go @@ -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