6 Commits

Author SHA1 Message Date
dd98db8c4b Add http response body to HttpTokenResponseException
Because response body is also helpful for error handler.

Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
2024-11-02 23:16:39 +09:00
096e753923 Add HttpTokenResponseException making error handling easy
Although http status code and http error message are helpful in error handling,
TokenResponseException, throwed by oauth\HTTPClient if an error occured during
the http request, does not have fields/methods which indicate them directly.

Solve it by adding HttpTokenResponseException which has indicators of http status
code and http error message, and throwing it instead of TokenResponseException.

Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
2024-10-31 10:26:52 +09:00
290e9b1f10 automatic style fixes and new workflows 2024-03-05 09:36:25 +01:00
973991088e check HTTP status properly in HTTPClient 2022-01-11 15:56:33 +01:00
04a78b879a renamed our Service to Adapter to avoid confusion
Also added a mechanism to register Services from an adapter
2021-12-04 00:01:50 +01:00
98a3611675 initial begin of refactoring
using composer for the oauth lib dependency, autoloading for our own
classes. Services are now their own action plugins to inherit from our
Service class.

All still untested and broken
2020-07-30 14:04:38 +02:00