OAuth2ApplicationAbstract

Subclass for any Application backed by OAuth2.

use Hanaboso\PipesPhpSdk\Authorization\Base\OAuth2\OAuth2ApplicationAbstract;

Inheritance #

ApplicationAbstract -> OAuth2ApplicationAbstract (implements OAuth2ApplicationInterface)

Methods you implement #

In addition to the base methods inherited from ApplicationAbstract:

MethodReturnsPurpose
getAuthUrl()stringProvider's authorization endpoint.
getTokenUrl()stringProvider's token endpoint.
getScopes(ApplicationInstall $install)string[]Scopes to request during authorization.

Methods provided #

MethodReturnsPurpose
getAccessToken(ApplicationInstall $install)stringCurrent access token, refreshed by the platform if expired.
refreshAuthorization(ApplicationInstall $install)ApplicationInstallForce refresh; called automatically by the platform.
getAuthorizationToken(ApplicationInstall $install, string $redirectUrl)stringBuilds the authorize URL the Admin UI redirects the user to.
setAuthorizationToken(ApplicationInstall $install, array $token)ApplicationInstallStores the token returned by the provider's callback.

See also #

© 2025 Orchesty Solutions. All rights reserved.