Inherit from the OAuth2 class correctly