-
Notifications
You must be signed in to change notification settings - Fork 4
/
uoauth2_frm.fmx
243 lines (243 loc) · 7.48 KB
/
uoauth2_frm.fmx
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
object frm_OAuth2: Tfrm_OAuth2
Left = 0
Top = 0
BorderIcons = [biSystemMenu]
Caption = 'OAuth2 - Assistant'
ClientHeight = 478
ClientWidth = 623
Position = poMainFormCenter
FormFactor.Width = 320
FormFactor.Height = 480
FormFactor.Devices = [dkDesktop, dkiPhone, dkiPad]
OnCreate = FormCreate
OnClose = FormClose
DesignerMobile = False
DesignerWidth = 0
DesignerHeight = 0
DesignerDeviceName = ''
DesignerOrientation = 0
object gb_MiscSettings: TGroupBox
Height = 137.000000000000000000
Position.X = 320.000000000000000000
Position.Y = 168.000000000000000000
Text = 'Misc'
Width = 290.000000000000000000
TabOrder = 3
object cmb_ResponseType: TComboBox
DisableFocusEffect = False
Height = 22.000000000000000000
Position.X = 20.000000000000000000
Position.Y = 48.000000000000000000
TabOrder = 0
Width = 250.000000000000000000
object Label25: TLabel
Height = 17.000000000000000000
Position.Y = -16.000000000000000000
Text = 'Response-Type:'
Width = 240.000000000000000000
end
object TListBoxItem
Height = 19.000000000000000000
Text = '-- filled at runtime--'
Width = 19.000000000000000000
end
end
object edt_OAuth2Scope: TEdit
Touch.InteractiveGestures = [igLongTap, igDoubleTap]
TabOrder = 1
Position.X = 20.000000000000000000
Position.Y = 96.000000000000000000
Width = 250.000000000000000000
Height = 22.000000000000000000
KillFocusByReturn = False
object Label26: TLabel
Height = 17.000000000000000000
Position.Y = -16.000000000000000000
Text = 'Scope:'
Width = 240.000000000000000000
end
end
end
object gb_Endpoints: TGroupBox
Height = 185.000000000000000000
Position.X = 16.000000000000000000
Position.Y = 24.000000000000000000
Text = 'Endpoints'
Width = 290.000000000000000000
TabOrder = 0
object edt_OAuth2AuthEndpoint: TEdit
Touch.InteractiveGestures = [igLongTap, igDoubleTap]
TabOrder = 0
Position.X = 20.000000000000000000
Position.Y = 48.000000000000000000
Width = 250.000000000000000000
Height = 22.000000000000000000
KillFocusByReturn = False
object Label20: TLabel
Height = 17.000000000000000000
Position.Y = -16.000000000000000000
Text = 'Auth-Endpoint:'
Width = 240.000000000000000000
end
end
object edt_OAuth2AccessTokenEndpoint: TEdit
Touch.InteractiveGestures = [igLongTap, igDoubleTap]
TabOrder = 1
Position.X = 20.000000000000000000
Position.Y = 96.000000000000000000
Width = 250.000000000000000000
Height = 22.000000000000000000
KillFocusByReturn = False
object Label21: TLabel
Height = 17.000000000000000000
Position.Y = -16.000000000000000000
Text = 'Access-Token-Endpoint:'
Width = 240.000000000000000000
end
end
object edt_OAuth2RedirectEndpoint: TEdit
Touch.InteractiveGestures = [igLongTap, igDoubleTap]
TabOrder = 2
Position.X = 20.000000000000000000
Position.Y = 144.000000000000000000
Width = 250.000000000000000000
Height = 22.000000000000000000
KillFocusByReturn = False
object Label22: TLabel
Height = 17.000000000000000000
Position.Y = -16.000000000000000000
Text = 'Redirection-Endpoint:'
Width = 240.000000000000000000
end
end
end
object gb_ClientData: TGroupBox
Height = 137.000000000000000000
Position.X = 320.000000000000000000
Position.Y = 24.000000000000000000
Text = 'Client-Data'
Width = 290.000000000000000000
TabOrder = 1
object edt_OAuth2ClientID: TEdit
Touch.InteractiveGestures = [igLongTap, igDoubleTap]
TabOrder = 0
Position.X = 20.000000000000000000
Position.Y = 48.000000000000000000
Width = 250.000000000000000000
Height = 22.000000000000000000
KillFocusByReturn = False
object Label18: TLabel
Height = 17.000000000000000000
Position.Y = -16.000000000000000000
Text = 'Client-ID:'
Width = 240.000000000000000000
end
end
object edt_OAuth2ClientSecret: TEdit
Touch.InteractiveGestures = [igLongTap, igDoubleTap]
TabOrder = 1
Position.X = 20.000000000000000000
Position.Y = 96.000000000000000000
Width = 250.000000000000000000
Height = 22.000000000000000000
KillFocusByReturn = False
object Label19: TLabel
Height = 17.000000000000000000
Position.Y = -16.000000000000000000
Text = 'Client-Secret:'
Width = 240.000000000000000000
end
end
end
object gb_CodeTokens: TGroupBox
Height = 185.000000000000000000
Position.X = 16.000000000000000000
Position.Y = 216.000000000000000000
Text = 'Code && Tokens'
Width = 290.000000000000000000
TabOrder = 2
object edt_OAuth2AuthCode: TEdit
Touch.InteractiveGestures = [igLongTap, igDoubleTap]
TabOrder = 0
Position.X = 20.000000000000000000
Position.Y = 48.000000000000000000
Width = 250.000000000000000000
Height = 22.000000000000000000
KillFocusByReturn = False
object Label17: TLabel
Height = 17.000000000000000000
Position.Y = -16.000000000000000000
Text = 'Auth-Code:'
Width = 240.000000000000000000
end
end
object edt_OAuth2AccessToken: TEdit
Touch.InteractiveGestures = [igLongTap, igDoubleTap]
TabOrder = 1
Position.X = 20.000000000000000000
Position.Y = 96.000000000000000000
Width = 250.000000000000000000
Height = 22.000000000000000000
KillFocusByReturn = False
object Label23: TLabel
Height = 17.000000000000000000
Position.Y = -16.000000000000000000
Text = 'Access-Token:'
Width = 240.000000000000000000
end
end
object edt_OAuth2RefreshToken: TEdit
Touch.InteractiveGestures = [igLongTap, igDoubleTap]
TabOrder = 2
Position.X = 20.000000000000000000
Position.Y = 144.000000000000000000
Width = 250.000000000000000000
Height = 22.000000000000000000
KillFocusByReturn = False
object Label24: TLabel
Height = 17.000000000000000000
Position.Y = -16.000000000000000000
Text = 'Refresh-Token:'
Width = 240.000000000000000000
end
end
end
object btn_Cancel: TButton
Anchors = [akRight, akBottom]
Height = 22.000000000000000000
Position.X = 528.000000000000000000
Position.Y = 441.000000000000000000
TabOrder = 7
Text = 'Cancel'
Width = 80.000000000000000000
OnClick = btn_CancelClick
end
object btn_Apply: TButton
Anchors = [akRight, akBottom]
Height = 22.000000000000000000
Position.X = 440.000000000000000000
Position.Y = 441.000000000000000000
TabOrder = 6
Text = 'Apply'
Width = 80.000000000000000000
OnClick = btn_ApplyClick
end
object btn_Authorize: TButton
Height = 22.000000000000000000
Position.X = 370.000000000000000000
Position.Y = 328.000000000000000000
TabOrder = 4
Text = 'Step #1: Authorize'
Width = 200.000000000000000000
OnClick = btn_AuthorizeClick
end
object Button2: TButton
Height = 22.000000000000000000
Position.X = 370.000000000000000000
Position.Y = 360.000000000000000000
TabOrder = 5
Text = 'Step #2: Request Access-Token'
Width = 200.000000000000000000
OnClick = Button2Click
end
end