OAuth1ApplicationAbstract
Subclass for any Application backed by OAuth1. There is no Node.js equivalent today; for Node-only setups that need OAuth1, see the note in Development: OAuth1 Application.
use Hanaboso\PipesPhpSdk\Authorization\Base\OAuth1\OAuth1ApplicationAbstract;
Inheritance #
ApplicationAbstract -> OAuth1ApplicationAbstract (implements OAuth1ApplicationInterface)
Methods you implement #
In addition to the base methods inherited from ApplicationAbstract:
| Method | Returns | Purpose |
|---|---|---|
getRequestTokenUrl() | string | Provider's request-token endpoint. |
getAccessTokenUrl() | string | Provider's access-token endpoint. |
getAuthorizeUrl() | string | User-facing authorize endpoint. |
Methods provided #
| Method | Returns | Purpose |
|---|---|---|
signRequest(ApplicationInstall $install, string $method, string $url, string $body) | RequestDto | Builds an HMAC-SHA1 signed request. |
getAuthorizationToken(ApplicationInstall $install, string $redirectUrl) | string | Returns the URL the user is redirected to. |
setAuthorizationToken(ApplicationInstall $install, array $token) | ApplicationInstall | Persists the token + secret pair. |
See also #
- Development: OAuth1 Application
- OAuth2ApplicationAbstract
- Node.js equivalent: not supported.