Added container for the playing now content.
Removing the dependency of google TokenResponse when persisting an oauth2 user. Using the class AccessToken to pass the necessary values to the persistence methods for both types of oauth users.
Using class inheritance for the OAuth entities extending a non-entity class. This non-entity is mapping the property providerName common to both OAuth entities.
Persisting the expiration date of the access token. This value should be considered to verify the validity of the access token before asking OAuth provider for protected resources.
Adding the email property to the AccessToken class to enable the oauth user registration process to receive one more parameter without having to change the signature.
Changing the action reaponsible to get the user contents to be able to get the contents from all the authenticated oauth services.
Saving the name of the oauth provider. Receiving the user email in the AccessToken parameter instead of adding a new parameter to method signature.
New method responsible for getting the access tokens of the given user.
Throwing OAuthException when there's a problem in the communication with the OAuth service API.
Creating a new Session instance for each call to the dropbox api. Receiving the oauth tokens in the method parameter associating it with the new session instance. The previous version wasn't capable of getting contents for multiple users because was reusing the same instance.