File tree Expand file tree Collapse file tree 5 files changed +48
-5
lines changed
Expand file tree Collapse file tree 5 files changed +48
-5
lines changed Original file line number Diff line number Diff line change 1212$ api_version = "$ argv [1 ]" ;
1313
1414if ($ api_version == "eSignature " || $ api_version == "idEvidence " ) :
15+ $ scope = 'signature ' ;
16+ elseif ($ api_version == "ConnectedFields " ) :
1517 $ scope = 'signature adm_store_unified_repo_read ' ;
1618elseif ($ api_version == "Rooms " ) :
1719 $ scope = 'dtr.rooms.read dtr.rooms.write dtr.documents.read dtr.documents.write dtr.profile.read dtr.profile.write dtr.company.read dtr.company.write room_forms ' ;
Original file line number Diff line number Diff line change 3535 $ scope = "signature aow_manage " ;
3636} else if ($ api_version == "Navigator " ) {
3737 $ scope = "signature adm_store_unified_repo_read " ;
38+ } else if ($ api_version == "ConnectedFields " ) {
39+ $ scope = "signature adm_store_unified_repo_read " ;
3840}
3941
4042$ body = encodeBase64URL (
Original file line number Diff line number Diff line change 6464 "signature" , "adm_store_unified_repo_read"
6565]
6666
67+ CONNECTED_FIELDS_SCOPES = [
68+ "signature" , "adm_store_unified_repo_read"
69+ ]
70+
6771class DSClient :
6872
6973 ds_app = None
@@ -89,6 +93,8 @@ def _jwt_auth(cls):
8993 use_scopes = MAESTRO_SCOPES
9094 elif (API_VERSION == "Navigator" ):
9195 use_scopes = NAVIGATOR_SCOPES
96+ elif (API_VERSION == "ConnectedFields" ):
97+ use_scopes = CONNECTED_FIELDS_SCOPES
9298 else :
9399 use_scopes = SCOPES
94100
File renamed without changes.
Original file line number Diff line number Diff line change @@ -182,6 +182,7 @@ function choices() {
182182 " WebForms" \
183183 " Maestro" \
184184 " Navigator (beta)" \
185+ " Connected_Fields" \
185186 " Exit" ; do
186187 case " $METHOD " in
187188
@@ -213,32 +214,43 @@ function choices() {
213214 login $api_version
214215 startAdmin
215216 ;;
217+
216218 ID_Evidence)
217219 api_version=" idEvidence"
218220 login $api_version
219221 startIdEvidence
220222 ;;
223+
221224 Notary)
222225 api_version=" Notary"
223226 login $api_version
224227 startNotary
225228 ;;
229+
226230 WebForms)
227231 api_version=" WebForms"
228232 login $api_version
229233 startWebForms
230234 ;;
235+
231236 Maestro)
232237 api_version=" Maestro"
233238 login $api_version
234239 startMaestro
235240 ;;
241+
236242 " Navigator (beta)" )
237243 api_version=" Navigator"
238244 login $api_version
239245 startNavigator
240246 ;;
241247
248+ ConnectedFields)
249+ api_version=" ConnectedFields"
250+ login $api_version
251+ startConnectedFields
252+ ;;
253+
242254 Exit)
243255 exit 0
244256 ;;
@@ -294,7 +306,6 @@ function startSignature() {
294306 " Shared_Access" \
295307 " Document_Generation" \
296308 " Focused_View" \
297- " Connected_Fields" \
298309 " Pick_An_API" ; do
299310 case " $CHOICE " in
300311 Pick_An_API)
@@ -468,10 +479,6 @@ function startSignature() {
468479 bash examples/eSignature/eg044FocusedView.sh
469480 startSignature
470481 ;;
471- Connected_Fields)
472- bash examples/eSignature/eg045ConnectedFields.sh
473- startSignature
474- ;;
475482 * )
476483 echo " "
477484 startSignature
@@ -1007,6 +1014,29 @@ function startNavigator() {
10071014 done
10081015}
10091016
1017+ function startConnectedFields() {
1018+ echo " "
1019+ PS3=' Select the action : '
1020+ select CHOICE in \
1021+ " Set_Connected_Fields" \
1022+ " Home" ; do
1023+ case " $CHOICE " in
1024+
1025+ Home)
1026+ choices
1027+ ;;
1028+ Set_Connected_Fields)
1029+ bash examples/ConnectedFields/eg001SetConnectedFields.sh
1030+ startConnectedFields
1031+ ;;
1032+ * )
1033+ echo " Default action..."
1034+ startConnectedFields
1035+ ;;
1036+ esac
1037+ done
1038+ }
1039+
10101040function continu() {
10111041
10121042 isCFR
@@ -1047,6 +1077,9 @@ function continu() {
10471077 elif [[ $api_version == " Navigator" ]]
10481078 then
10491079 startNavigator
1080+ elif [[ $api_version == " ConnectedFields" ]]
1081+ then
1082+ startConnectedFields
10501083 fi
10511084}
10521085
You can’t perform that action at this time.
0 commit comments