diff options
Diffstat (limited to 'Postman/Postman-Auth/PostmanAuthenticationManager.php')
-rw-r--r-- | Postman/Postman-Auth/PostmanAuthenticationManager.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Postman/Postman-Auth/PostmanAuthenticationManager.php b/Postman/Postman-Auth/PostmanAuthenticationManager.php new file mode 100644 index 0000000..56cc697 --- /dev/null +++ b/Postman/Postman-Auth/PostmanAuthenticationManager.php @@ -0,0 +1,15 @@ +<?php +if (! interface_exists ( "PostmanAuthenticationManager" )) { + interface PostmanAuthenticationManager { + const POSTMAN_AUTHORIZATION_IN_PROGRESS = 'request_oauth_permission'; + const FORCE_REFRESH_X_SECONDS_BEFORE_EXPIRE = 60; + public function isAccessTokenExpired(); + public function refreshToken(); + public function generateRequestTransactionId(); + public function requestVerificationCode($transactionId); + public function processAuthorizationGrantCode($transactionId); + public function getAuthorizationUrl(); + public function getTokenUrl(); + public function getCallbackUri(); + } +} |