summaryrefslogtreecommitdiff
path: root/Postman/Postman-Auth/PostmanNonOAuthAuthenticationManager.php
blob: ed4f0c37bda32e28e71950b7fd9ef6b7c6d133f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
if ( ! defined( 'ABSPATH' ) ) {
    exit; // Exit if accessed directly
}
if (! class_exists ( "PostmanNonOAuthAuthenticationManager" )) {
	
	require_once 'PostmanAuthenticationManager.php';
	class PostmanNonOAuthAuthenticationManager implements PostmanAuthenticationManager {
		
		/**
		 */
		public function isAccessTokenExpired() {
			return false;
		}
		
		/**
		 * (non-PHPdoc)
		 *
		 * @see PostmanAuthenticationManager::requestVerificationCode()
		 */
		public function requestVerificationCode($transactionId) {
			// otherwise known as IllegaStateException
			assert ( false );
		}
		public function processAuthorizationGrantCode($transactionId) {
			// otherwise known as IllegaStateException
			assert ( false );
		}
		public function refreshToken() {
			// no-op
		}
		public function getAuthorizationUrl() {
			return null;
		}
		public function getTokenUrl() {
			return null;
		}
		public function getCallbackUri() {
			return null;
		}
		public function generateRequestTransactionId() {
			// otherwise known as IllegaStateException
			assert ( false );
		}
	}
}