From 42c488cc6985eda95e572d52dfab08477f8e5c10 Mon Sep 17 00:00:00 2001 From: Matteo Suppo Date: Wed, 17 May 2017 15:27:44 +0200 Subject: [PATCH] Introspection is active if returns --- introspector.go | 1 + 1 file changed, 1 insertion(+) diff --git a/introspector.go b/introspector.go index 52dba1f..e7187de 100644 --- a/introspector.go +++ b/introspector.go @@ -106,6 +106,7 @@ func (m *Introspector) Allowed(token string, perm introspector.Permission, scope if err != nil { return nil, false, err } + i.Active = true i.Introspection.Scope = strings.Join(i.Scopes, " ") i.Introspection.IssuedAt = i.IssuedAt.Unix() i.Introspection.ExpiresAt = i.ExpiresAt.Unix()