-
Notifications
You must be signed in to change notification settings - Fork 145
Expand file tree
/
Copy pathZohoOAuthConstants.php
More file actions
91 lines (47 loc) · 2 KB
/
ZohoOAuthConstants.php
File metadata and controls
91 lines (47 loc) · 2 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?php
namespace zcrmsdk\oauth\utility;
class ZohoOAuthConstants
{
const IAM_URL = "accounts_url";
const SCOPES = "scope";
const STATE = "state";
const STATE_OBTAINING_GRANT_TOKEN = "OBTAIN_GRANT_TOKEN";
const RESPONSE_TYPE = "response_type";
const RESPONSE_TYPE_CODE = "code";
const CLIENT_ID = "client_id";
const CLIENT_SECRET = "client_secret";
const REDIRECT_URL = "redirect_uri";
const ACCESS_TYPE = "access_type";
const ACCESS_TYPE_OFFLINE = "offline";
const ACCESS_TYPE_ONLINE = "online";
const PROMPT = "prompt";
const PROMPT_CONSENT = "consent";
const GRANT_TYPE = "grant_type";
const GRANT_TYPE_AUTH_CODE = "authorization_code";
const GRANT_TYPE_REFRESH = "refresh_token";
const CODE = "code";
const GRANT_TOKEN = "grant_token";
const ACCESS_TOKEN = "access_token";
const REFRESH_TOKEN = "refresh_token";
const EXPIRES_IN = "expires_in";
const EXPIRES_IN_SEC = "expires_in_sec";
const EXPIRIY_TIME = "expiry_time";
const PERSISTENCE_HANDLER = "persistence_handler";
const PERSISTENCE_HANDLER_CLASS = "persistence_handler_class";
const PERSISTENCE_HANDLER_CLASS_NAME = "persistence_handler_class_name";
const TOKEN = "token";
const DISPATCH_TO = "dispatchTo";
const OAUTH_TOKENS_PARAM = "oauth_tokens";
const OAUTH_HEADER_PREFIX = "Zoho-oauthtoken ";
const AUTHORIZATION = "Authorization";
const REQUEST_METHOD_GET = "GET";
const REQUEST_METHOD_POST = "POST";
const SANDBOX = "sandbox";
const TOKEN_PERSISTENCE_PATH = "token_persistence_path";
const DATABASE_NAME = "db_name";
const DATABASE_PORT = "db_port";
const DATABASE_USERNAME = "db_username";
const DATABASE_PASSWORD = "db_password";
const HOST_ADDRESS = "host_address";
const RESPONSECODE_OK = 200;
}