Closed matosf closed 8 years ago
Actually we don't even store the "grant_type" in the token, so I would rather remove it from the Token Info endpoint (which we should not do because of compatibility) or do nothing.
I don't want to grow the token size just to store the "grant_type" (which nobody really uses anyway) :smirk:
Since AFAIK the tokeninfo endpoint is not part of the OAuth2 standard, we can change the response to include just what we need.
Since nobody uses the "grant_type", I would also just drop it from the response.
@matosf we could probably just wait for the new OAuth Introspection Endpoint to be implemented: https://github.com/zalando/planb-tokeninfo/issues/32 --- that is completely different (requires app changes!) and would remove all the legacy response structures (e.g. truthy scope attributes).
@hjacobs seems good to me