-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOauth.postman_collection.json
144 lines (144 loc) · 3.68 KB
/
Oauth.postman_collection.json
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
{
"info": {
"_postman_id": "f90acb3d-3d8a-41cf-90d7-1966a47fe20f",
"name": "Oauth",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "GetCode",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "https://accounts.google.com/o/oauth2/v2/auth?scope=https://www.googleapis.com/auth/userinfo.email&auth_url=https://accounts.google.com/o/oauth2/v2/auth&client_id=692183103107-p0m7ent2hk7suguv4vq22hjcfhcr43pj.apps.googleusercontent.com&response_type=code&redirect_uri=https://rahulshettyacademy.com/getCourse.php",
"protocol": "https",
"host": [
"accounts",
"google",
"com"
],
"path": [
"o",
"oauth2",
"v2",
"auth"
],
"query": [
{
"key": "scope",
"value": "https://www.googleapis.com/auth/userinfo.email"
},
{
"key": "auth_url",
"value": "https://accounts.google.com/o/oauth2/v2/auth"
},
{
"key": "client_id",
"value": "692183103107-p0m7ent2hk7suguv4vq22hjcfhcr43pj.apps.googleusercontent.com"
},
{
"key": "response_type",
"value": "code"
},
{
"key": "redirect_uri",
"value": "https://rahulshettyacademy.com/getCourse.php"
}
]
}
},
"response": []
},
{
"name": "GET Access Token",
"request": {
"method": "POST",
"header": [],
"url": {
"raw": "https://www.googleapis.com/oauth2/v4/token?code=4%2F0AY0e-g6UUD1-sMKIpsxzb520ZVflKe7i8xD_oQk6X3t_fjDqhaROnrJncgGX7dEF0jllVg&client_id=692183103107-p0m7ent2hk7suguv4vq22hjcfhcr43pj.apps.googleusercontent.com&client_secret=erZOWM9g3UtwNRj340YYaK_W&redirect_uri=https://rahulshettyacademy.com/getCourse.php&grant_type=authorization_code#",
"protocol": "https",
"host": [
"www",
"googleapis",
"com"
],
"path": [
"oauth2",
"v4",
"token"
],
"query": [
{
"key": "code",
"value": "4%2F0AY0e-g6UUD1-sMKIpsxzb520ZVflKe7i8xD_oQk6X3t_fjDqhaROnrJncgGX7dEF0jllVg"
},
{
"key": "client_id",
"value": "692183103107-p0m7ent2hk7suguv4vq22hjcfhcr43pj.apps.googleusercontent.com"
},
{
"key": "client_secret",
"value": "erZOWM9g3UtwNRj340YYaK_W"
},
{
"key": "redirect_uri",
"value": "https://rahulshettyacademy.com/getCourse.php"
},
{
"key": "grant_type",
"value": "authorization_code"
},
{
"key": "scope",
"value": "https://www.googleapis.com/auth/userinfo.email",
"disabled": true
},
{
"key": "response_type",
"value": "code",
"disabled": true
},
{
"key": "authuser",
"value": "1",
"disabled": true
},
{
"key": "prompt",
"value": "consent",
"disabled": true
}
],
"hash": ""
}
},
"response": []
},
{
"name": "Acutal Request",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "https://rahulshettyacademy.com/getCourse.php?access_token=ya29.a0AfH6SMD-EytFH41srRFqd55ewFQGIJDcuEq-uhPn4UYeXmyRkY5NY0VBPYZgAk2zou8KRYZpspkrC3QtrhKS5McUsWoxCFpWoYEVFq3rN00eJCicj-_j9xv8Q-9gTumTGy5rJxgfkMrTVZSbtWnB2LSR0C1L",
"protocol": "https",
"host": [
"rahulshettyacademy",
"com"
],
"path": [
"getCourse.php"
],
"query": [
{
"key": "access_token",
"value": "ya29.a0AfH6SMD-EytFH41srRFqd55ewFQGIJDcuEq-uhPn4UYeXmyRkY5NY0VBPYZgAk2zou8KRYZpspkrC3QtrhKS5McUsWoxCFpWoYEVFq3rN00eJCicj-_j9xv8Q-9gTumTGy5rJxgfkMrTVZSbtWnB2LSR0C1L"
}
]
}
},
"response": []
}
]
}