-
Notifications
You must be signed in to change notification settings - Fork 452
Open
Labels
Milestone
Description
In the OauthToken there's support for injecting the access token, but only the string:
public function setToken($token) |
It's set after the auth process:
$token->setToken($tokenString); |
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