Open
Description
In the OauthToken there's support for injecting the access token, but only the string:
It's set after the auth process:
But, this makes access other information from the access token (like current client, for example) impossible and workarounds like setting the client as an attribute were proposed (#81).
A way better (and simpler) solution is to just inject the whole access token. We can introduce additional methods for this (setAccessToken
/ getAccessToken
) and provide functionality for existing methods on the fly, deprecating existing methods and removing in 2.0