@sasjs/core 4.46.5 → 4.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.server +3 -3
- package/README.md +3 -2
- package/base/mf_abort.sas +5 -0
- package/base/mf_deletefile.sas +1 -1
- package/base/mf_existds.sas +1 -1
- package/base/mf_existfileref.sas +1 -1
- package/base/mf_existfunction.sas +1 -1
- package/base/mf_existvarlist.sas +2 -2
- package/base/mf_getapploc.sas +1 -0
- package/base/mf_getattrc.sas +2 -2
- package/base/mf_getattrn.sas +2 -2
- package/base/mf_getkeyvalue.sas +3 -2
- package/base/mf_getplatform.sas +1 -1
- package/base/mf_getschema.sas +1 -1
- package/base/mf_getuniquelibref.sas +1 -1
- package/base/mf_getuniquename.sas +1 -1
- package/base/mf_getuser.sas +0 -2
- package/base/mf_getvalue.sas +3 -3
- package/base/mf_getvarformat.sas +2 -1
- package/base/mf_getvarlen.sas +2 -2
- package/base/mf_getvarnum.sas +2 -2
- package/base/mf_getvartype.sas +2 -2
- package/base/mf_getxengine.sas +1 -1
- package/base/mf_increment.sas +2 -2
- package/base/mf_isblank.sas +1 -1
- package/base/mf_isdir.sas +1 -1
- package/base/mf_loc.sas +6 -1
- package/base/mf_mkdir.sas +1 -1
- package/base/mf_mval.sas +2 -0
- package/base/mf_nobs.sas +1 -1
- package/base/mf_trimstr.sas +2 -2
- package/base/mf_wordsinstr1andstr2.sas +2 -2
- package/base/mf_wordsinstr1butnotstr2.sas +2 -2
- package/base/mf_writefile.sas +2 -2
- package/base/mp_abort.sas +11 -10
- package/base/mp_aligndecimal.sas +2 -2
- package/base/mp_appendfile.sas +2 -2
- package/base/mp_applyformats.sas +5 -5
- package/base/mp_assertcols.sas +2 -2
- package/base/mp_assertcolvals.sas +1 -1
- package/base/mp_base64copy.sas +2 -2
- package/base/mp_binarycopy.sas +7 -6
- package/base/mp_chop.sas +3 -2
- package/base/mp_cleancsv.sas +5 -4
- package/base/mp_copyfolder.sas +2 -2
- package/base/mp_createconstraints.sas +3 -3
- package/base/mp_createwebservice.sas +1 -1
- package/base/mp_csv2ds.sas +6 -5
- package/base/mp_deleteconstraints.sas +5 -3
- package/base/mp_deletefolder.sas +1 -1
- package/base/mp_dictionary.sas +1 -1
- package/base/mp_distinctfmtvalues.sas +5 -5
- package/base/mp_ds2ddl.sas +14 -2
- package/base/mp_dsmeta.sas +2 -2
- package/base/mp_filtercheck.sas +6 -4
- package/base/mp_filtergenerate.sas +2 -2
- package/base/mp_filterstore.sas +4 -3
- package/base/mp_getcols.sas +3 -2
- package/base/mp_getdbml.sas +4 -4
- package/base/mp_getddl.sas +15 -10
- package/base/mp_gsubfile.sas +6 -6
- package/base/mp_guesspk.sas +1 -1
- package/base/mp_hashdataset.sas +1 -1
- package/base/mp_lib2cards.sas +7 -7
- package/base/mp_md5.sas +2 -2
- package/base/mp_perflog.sas +3 -3
- package/base/mp_prevobs.sas +5 -5
- package/base/mp_recursivejoin.sas +7 -6
- package/base/mp_replace.sas +5 -4
- package/base/mp_runddl.sas +3 -3
- package/base/mp_searchcols.sas +7 -6
- package/base/mp_stprequests.sas +4 -3
- package/base/mp_testjob.sas +2 -2
- package/base/mp_testwritespeedlibrary.sas +3 -3
- package/base/mp_tree.sas +2 -2
- package/base/mp_unzip.sas +5 -4
- package/base/mp_updatevarlength.sas +3 -3
- package/base/mp_validatecol.sas +2 -2
- package/base/mp_wait4file.sas +1 -1
- package/base/mp_webin.sas +1 -1
- package/base/mp_zip.sas +5 -5
- package/ddl/mddl_sas_cntlout.sas +12 -1
- package/meta/mm_adduser2group.sas +3 -3
- package/meta/mm_assigndirectlib.sas +10 -12
- package/meta/mm_assignlib.sas +2 -2
- package/meta/mm_createapplication.sas +13 -10
- package/meta/mm_createdataset.sas +5 -5
- package/meta/mm_createdocument.sas +7 -7
- package/meta/mm_createfolder.sas +5 -5
- package/meta/mm_createlibrary.sas +20 -17
- package/meta/mm_createstp.sas +22 -18
- package/meta/mm_createwebservice.sas +15 -14
- package/meta/mm_deletedocument.sas +1 -1
- package/meta/mm_deletelibrary.sas +1 -1
- package/meta/mm_deletestp.sas +1 -1
- package/meta/mm_getcols.sas +2 -2
- package/meta/mm_getdetails.sas +6 -3
- package/meta/mm_getdirectories.sas +4 -3
- package/meta/mm_getdocument.sas +4 -4
- package/meta/mm_getgroupmembers.sas +5 -5
- package/meta/mm_getlibs.sas +2 -2
- package/meta/mm_getobjects.sas +2 -2
- package/meta/mm_getpublictypes.sas +2 -0
- package/meta/mm_getrepos.sas +2 -1
- package/meta/mm_getroles.sas +2 -1
- package/meta/mm_getservercontexts.sas +2 -1
- package/meta/mm_getstpinfo.sas +1 -1
- package/meta/mm_getstps.sas +8 -7
- package/meta/mm_gettableid.sas +4 -4
- package/meta/mm_gettree.sas +4 -4
- package/meta/mm_gettypes.sas +2 -1
- package/meta/mm_getusers.sas +2 -4
- package/meta/mm_getwebappsrvprops.sas +1 -1
- package/meta/mm_tree.sas +3 -3
- package/meta/mm_updateappextension.sas +8 -8
- package/meta/mm_updatedocument.sas +6 -6
- package/meta/mm_updatestpservertype.sas +2 -2
- package/meta/mm_updatestpsourcecode.sas +6 -4
- package/metax/mmx_createmetafolder.sas +3 -3
- package/metax/mmx_deletemetafolder.sas +3 -3
- package/metax/mmx_spkexport.sas +6 -5
- package/package.json +1 -1
- package/server/ms_createwebservice.sas +4 -2
- package/viya/mfv_existfile.sas +2 -1
- package/viya/mfv_existfolder.sas +1 -1
- package/viya/mfv_existsashdat.sas +4 -4
- package/viya/mv_createjob.sas +16 -14
- package/viya/mv_createwebservice.sas +4 -2
- package/viya/mv_deletefoldermember.sas +8 -6
- package/viya/mv_deletejes.sas +7 -5
- package/viya/mv_getclients.sas +2 -4
- package/viya/mv_getgroupmembers.sas +8 -5
- package/viya/mv_getgroups.sas +6 -4
- package/viya/mv_getjobstate.sas +6 -4
- package/viya/mv_getusergroups.sas +7 -4
- package/viya/mv_getusers.sas +8 -6
- package/viya/mv_registerclient.sas +4 -4
- package/viya/mv_tokenauth.sas +14 -13
- package/viya/mv_tokenrefresh.sas +11 -10
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
,type=WKS)
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
@param target= full path to the STP being deleted
|
|
13
|
-
@param type= Either WKS or STP depending on whether Workspace or
|
|
12
|
+
@param [in] target= full path to the STP being deleted
|
|
13
|
+
@param [in] type= Either WKS or STP depending on whether Workspace or
|
|
14
14
|
Stored Process type required
|
|
15
15
|
|
|
16
16
|
@version 9.4
|
|
@@ -10,10 +10,12 @@
|
|
|
10
10
|
,stpcode="/file/system/source.sas")
|
|
11
11
|
|
|
12
12
|
@param [in] stp= the BIP Tree folder path plus Stored Process Name
|
|
13
|
-
@param [in] stpcode=
|
|
14
|
-
into the stp.
|
|
15
|
-
|
|
16
|
-
@param
|
|
13
|
+
@param [in] stpcode= () The source file (or fileref) containing the SAS
|
|
14
|
+
code to load into the stp.
|
|
15
|
+
For multiple files, they should simply be concatenated first.
|
|
16
|
+
@param [in] minify= (NO) Set to YES in order to strip comments, blank lines,
|
|
17
|
+
and CRLFs.
|
|
18
|
+
@param [in] mDebug= set to 1 to show debug messages in the log
|
|
17
19
|
|
|
18
20
|
@version 9.3
|
|
19
21
|
@author Allan Bowe
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
@li mf_loc.sas
|
|
12
12
|
@li mp_abort.sas
|
|
13
13
|
|
|
14
|
-
@param loc= the metadata folder to delete
|
|
15
|
-
@param user= username
|
|
16
|
-
@param pass= password
|
|
14
|
+
@param [in] loc= the metadata folder to delete
|
|
15
|
+
@param [in] user= username
|
|
16
|
+
@param [in] pass= password
|
|
17
17
|
|
|
18
18
|
@version 9.4
|
|
19
19
|
@author Allan Bowe
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
<h4> SAS Macros </h4>
|
|
13
13
|
@li mf_loc.sas
|
|
14
14
|
|
|
15
|
-
@param loc= the metadata folder to delete
|
|
16
|
-
@param user= username
|
|
17
|
-
@param pass= password
|
|
15
|
+
@param [in] loc= the metadata folder to delete
|
|
16
|
+
@param [in] user= username
|
|
17
|
+
@param [in] pass= password
|
|
18
18
|
|
|
19
19
|
@version 9.4
|
|
20
20
|
@author Allan Bowe
|
package/metax/mmx_spkexport.sas
CHANGED
|
@@ -32,11 +32,12 @@ Usage:
|
|
|
32
32
|
@li mf_getuniquefileref.sas
|
|
33
33
|
@li mp_abort.sas
|
|
34
34
|
|
|
35
|
-
@param metaloc= the metadata folder to export
|
|
36
|
-
@param secureref= fileref containing the username / password
|
|
37
|
-
a file in a secure location)
|
|
38
|
-
@param outspkname= name of the spk to be created (default is mmxport).
|
|
39
|
-
@param outspkpath=
|
|
35
|
+
@param [in] metaloc= the metadata folder to export
|
|
36
|
+
@param [in] secureref= () fileref containing the username / password
|
|
37
|
+
(should point to a file in a secure location)
|
|
38
|
+
@param [in] outspkname= name of the spk to be created (default is mmxport).
|
|
39
|
+
@param [in] outspkpath= ((%sysfunc(pathname(WORK)))
|
|
40
|
+
directory in which to create the SPK.
|
|
40
41
|
|
|
41
42
|
@version 9.4
|
|
42
43
|
@author Allan Bowe
|
package/package.json
CHANGED
|
@@ -652,9 +652,11 @@ data _null_;
|
|
|
652
652
|
put ' ';
|
|
653
653
|
put '%mend mfs_httpheader; ';
|
|
654
654
|
/* WEBOUT END */
|
|
655
|
-
put '%macro webout(action,ds,dslabel=,fmt=,missing=NULL,showmeta=NO
|
|
655
|
+
put '%macro webout(action,ds,dslabel=,fmt=,missing=NULL,showmeta=NO';
|
|
656
|
+
put ' ,maxobs=MAX';
|
|
657
|
+
put ');';
|
|
656
658
|
put ' %ms_webout(&action,ds=&ds,dslabel=&dslabel,fmt=&fmt,missing=&missing';
|
|
657
|
-
put ' ,showmeta=&showmeta';
|
|
659
|
+
put ' ,showmeta=&showmeta,maxobs=&maxobs';
|
|
658
660
|
put ' )';
|
|
659
661
|
put '%mend;';
|
|
660
662
|
run;
|
package/viya/mfv_existfile.sas
CHANGED
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
%put %mfv_existfile(/does/exist.txt);
|
|
13
13
|
%put %mfv_existfile(/does/not/exist.txt);
|
|
14
14
|
|
|
15
|
-
@param filepath The full path to the file on SAS drive
|
|
15
|
+
@param [in] filepath The full path to the file on SAS drive
|
|
16
|
+
(eg /Public/myfile.txt)
|
|
16
17
|
|
|
17
18
|
<h4> SAS Macros </h4>
|
|
18
19
|
@li mf_abort.sas
|
package/viya/mfv_existfolder.sas
CHANGED
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
To force a rescan, just use a new `&outprefix` value, or delete the table(s)
|
|
14
14
|
before running the function.
|
|
15
15
|
|
|
16
|
-
@param libds library.dataset
|
|
17
|
-
@param outprefix= (work.mfv_existsashdat)
|
|
18
|
-
tables to improve subsequent query performance.
|
|
19
|
-
and is converted to `&prefix._{libref}`
|
|
16
|
+
@param [in] libds library.dataset
|
|
17
|
+
@param [out] outprefix= (work.mfv_existsashdat)
|
|
18
|
+
Used to store current HDATA tables to improve subsequent query performance.
|
|
19
|
+
This reference is a prefix and is converted to `&prefix._{libref}`
|
|
20
20
|
|
|
21
21
|
@return output returns 1 or 0
|
|
22
22
|
|
package/viya/mv_createjob.sas
CHANGED
|
@@ -32,30 +32,32 @@
|
|
|
32
32
|
@li mf_isblank.sas
|
|
33
33
|
@li mv_deletejes.sas
|
|
34
34
|
|
|
35
|
-
@param path= The full path (on SAS Drive) where the job will be created
|
|
36
|
-
@param name= The name of the job
|
|
37
|
-
@param desc= (Created by the mv_createjob.sas macro) The job description
|
|
38
|
-
@param precode=
|
|
35
|
+
@param [in] path= The full path (on SAS Drive) where the job will be created
|
|
36
|
+
@param [in] name= The name of the job
|
|
37
|
+
@param [in] desc= (Created by the mv_createjob.sas macro) The job description
|
|
38
|
+
@param [in] precode= ()
|
|
39
|
+
Space separated list of filerefs, pointing to the code that
|
|
39
40
|
needs to be attached to the beginning of the job
|
|
40
|
-
@param code= (ft15f001) Fileref(s) of the actual code to be added
|
|
41
|
-
@param access_token_var= (ACCESS_TOKEN)
|
|
42
|
-
access token
|
|
43
|
-
@param grant_type= (sas_services) Valid values:
|
|
41
|
+
@param [in] code= (ft15f001) Fileref(s) of the actual code to be added
|
|
42
|
+
@param [in] access_token_var= (ACCESS_TOKEN)
|
|
43
|
+
Global macro variable containing the access token
|
|
44
|
+
@param [in] grant_type= (sas_services) Valid values:
|
|
44
45
|
@li sas_services
|
|
45
46
|
@li detect
|
|
46
47
|
@li authorization_code
|
|
47
48
|
@li password
|
|
48
|
-
@param replace= (YES) select NO to avoid replacing any existing job
|
|
49
|
-
@param addjesbeginendmacros= (false)
|
|
50
|
-
|
|
49
|
+
@param [in] replace= (YES) select NO to avoid replacing any existing job
|
|
50
|
+
@param [in] addjesbeginendmacros= (false)
|
|
51
|
+
Relates to the `_addjesbeginendmacros` setting.
|
|
52
|
+
Normally this would always be false however due to a Viya bug
|
|
51
53
|
(https://github.com/sasjs/cli/issues/1229) this is now configurable. Valid
|
|
52
54
|
values:
|
|
53
55
|
@li true
|
|
54
56
|
@li false
|
|
55
57
|
@li 0 - this will prevent the flag from being set (job will default to true)
|
|
56
|
-
@param contextname= Choose a specific context on which to run the Job.
|
|
57
|
-
blank to use the default context.
|
|
58
|
-
a shared context - see
|
|
58
|
+
@param [in] contextname= () Choose a specific context on which to run the Job.
|
|
59
|
+
Leave blank to use the default context.
|
|
60
|
+
From Viya 3.5 it is possible to configure a shared context - see
|
|
59
61
|
https://go.documentation.sas.com/?docsetId=calcontexts&docsetTarget=n1hjn8eobk5pyhn1wg3ja0drdl6h.htm&docsetVersion=3.5&locale=en
|
|
60
62
|
|
|
61
63
|
@version VIYA V.03.04
|
|
@@ -814,9 +814,11 @@ data _null_;
|
|
|
814
814
|
put '%global __program _program;';
|
|
815
815
|
put '%let _program=%sysfunc(coalescec(&__program,&_program));';
|
|
816
816
|
put ' ';
|
|
817
|
-
put '%macro webout(action,ds,dslabel=,fmt=,missing=NULL,showmeta=NO
|
|
817
|
+
put '%macro webout(action,ds,dslabel=,fmt=,missing=NULL,showmeta=NO';
|
|
818
|
+
put ' ,maxobs=MAX';
|
|
819
|
+
put ');';
|
|
818
820
|
put ' %mv_webout(&action,ds=&ds,dslabel=&dslabel,fmt=&fmt,missing=&missing';
|
|
819
|
-
put ' ,showmeta=&showmeta';
|
|
821
|
+
put ' ,showmeta=&showmeta,maxobs=&maxobs';
|
|
820
822
|
put ' )';
|
|
821
823
|
put '%mend;';
|
|
822
824
|
run;
|
|
@@ -11,12 +11,14 @@
|
|
|
11
11
|
%mv_deletejes(path=/Public/test, name=blah)
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
@param path=
|
|
15
|
-
|
|
16
|
-
@param
|
|
17
|
-
@param
|
|
18
|
-
@param
|
|
19
|
-
The
|
|
14
|
+
@param [in] path= ()
|
|
15
|
+
The full path of the folder containing the item to be deleted
|
|
16
|
+
@param [in] name= The name of the item to be deleted
|
|
17
|
+
@param [in] contenttype= The contenttype of the item, eg: file, jobDefinition
|
|
18
|
+
@param [in] access_token_var= (ACCESS_TOKEN)
|
|
19
|
+
The global macro variable to contain the access token
|
|
20
|
+
@param [in] grant_type= (sas_services)
|
|
21
|
+
valid values are "password" or "authorization_code" (unquoted).
|
|
20
22
|
|
|
21
23
|
|
|
22
24
|
@version VIYA V.03.04
|
package/viya/mv_deletejes.sas
CHANGED
|
@@ -11,11 +11,13 @@
|
|
|
11
11
|
%mv_deletejes(path=/Public/test, name=blah)
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
@param path=
|
|
15
|
-
|
|
16
|
-
@param
|
|
17
|
-
@param
|
|
18
|
-
The
|
|
14
|
+
@param [in] path= ()
|
|
15
|
+
The full path of the folder containing the Job Execution Service
|
|
16
|
+
@param [in] name= The name of the Job Execution Service to be deleted
|
|
17
|
+
@param [in] access_token_var= (ACCESS_TOKEN)
|
|
18
|
+
The global macro variable to contain the access token
|
|
19
|
+
@param [in] grant_type= (sas_services)
|
|
20
|
+
Valid values are "password" or "authorization_code" (unquoted).
|
|
19
21
|
|
|
20
22
|
|
|
21
23
|
@version VIYA V.03.04
|
package/viya/mv_getclients.sas
CHANGED
|
@@ -22,10 +22,8 @@
|
|
|
22
22
|
|
|
23
23
|
%mv_getclients()
|
|
24
24
|
|
|
25
|
-
@param
|
|
26
|
-
|
|
27
|
-
The default is authorization_code.
|
|
28
|
-
@param outds= The library.dataset to be created that contains the list of groups
|
|
25
|
+
@param [out] outds= (work.mv_getclients)
|
|
26
|
+
The library.dataset to be created that contains the list of clients
|
|
29
27
|
|
|
30
28
|
|
|
31
29
|
@version VIYA V.03.04
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
@file mv_getgroupmembers.sas
|
|
3
3
|
@brief Creates a dataset with a list of group members
|
|
4
|
-
@details First, be sure you have an access token (which requires an app token)
|
|
4
|
+
@details First, be sure you have an access token (which requires an app token)
|
|
5
5
|
|
|
6
6
|
Using the macros here:
|
|
7
7
|
|
|
@@ -23,10 +23,13 @@
|
|
|
23
23
|
providerId char(5),
|
|
24
24
|
implicit num
|
|
25
25
|
|
|
26
|
-
@param
|
|
27
|
-
@param
|
|
28
|
-
The
|
|
29
|
-
@param
|
|
26
|
+
@param [in] group Group id for which to return group members
|
|
27
|
+
@param [in] access_token_var= (ACCESS_TOKEN)
|
|
28
|
+
The global macro variable to contain the access token
|
|
29
|
+
@param [in] grant_type= (sas_services)
|
|
30
|
+
valid values are "password" or "authorization_code" (unquoted).
|
|
31
|
+
@param [out] outds= (work.viyagroupmembers)
|
|
32
|
+
The library.dataset to be created that contains the list of group members
|
|
30
33
|
|
|
31
34
|
|
|
32
35
|
@version VIYA V.03.04
|
package/viya/mv_getgroups.sas
CHANGED
|
@@ -11,10 +11,12 @@
|
|
|
11
11
|
|
|
12
12
|
%mv_getgroups(outds=work.groups)
|
|
13
13
|
|
|
14
|
-
@param [in] access_token_var=
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
@param [in] access_token_var= (ACCESS_TOKEN)
|
|
15
|
+
The global macro variable to contain the access token
|
|
16
|
+
@param [in] grant_type= (sas_services)
|
|
17
|
+
valid values are "password" or "authorization_code" (unquoted).
|
|
18
|
+
@param [out] outds= (work.viyagroups)
|
|
19
|
+
The library.dataset to be created that contains the list of groups
|
|
18
20
|
|
|
19
21
|
|
|
20
22
|
@version VIYA V.03.04
|
package/viya/mv_getjobstate.sas
CHANGED
|
@@ -50,7 +50,8 @@
|
|
|
50
50
|
|
|
51
51
|
%mv_getjobstate(uri=&uri,outds=results)
|
|
52
52
|
|
|
53
|
-
You can run this macro as part of a loop to await the final 'completed'
|
|
53
|
+
You can run this macro as part of a loop to await the final 'completed'
|
|
54
|
+
status.
|
|
54
55
|
The full list of status values is:
|
|
55
56
|
|
|
56
57
|
@li idle
|
|
@@ -63,12 +64,13 @@
|
|
|
63
64
|
If you have one or more jobs that you'd like to wait for completion you can
|
|
64
65
|
also use the [mv_jobwaitfor](/mv__jobwaitfor_8sas.html) macro.
|
|
65
66
|
|
|
66
|
-
@param [in] access_token_var=
|
|
67
|
+
@param [in] access_token_var= (ACCESS_TOKEN)
|
|
68
|
+
The global macro variable to contain the access token
|
|
67
69
|
@param [in] grant_type= valid values:
|
|
68
70
|
@li password
|
|
69
71
|
@li authorization_code
|
|
70
|
-
@li detect - will check if access_token exists, if not will use sas_services
|
|
71
|
-
a SASStudioV session else authorization_code.
|
|
72
|
+
@li detect - will check if access_token exists, if not will use sas_services
|
|
73
|
+
if a SASStudioV session else authorization_code.
|
|
72
74
|
@li sas_services - will use oauth_bearer=sas_services.
|
|
73
75
|
@param [in] uri= The uri of the running job for which to fetch the status,
|
|
74
76
|
in the format `/jobExecution/jobs/$UUID/state` (unquoted).
|
|
@@ -13,10 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
%mv_getusergroups(&sysuserid,outds=users)
|
|
15
15
|
|
|
16
|
-
@param
|
|
17
|
-
@param
|
|
18
|
-
The
|
|
19
|
-
@param
|
|
16
|
+
@param [in] user The username for which to return the list of groups
|
|
17
|
+
@param [in] access_token_var= (ACCESS_TOKEN)
|
|
18
|
+
The global macro variable to contain the access token
|
|
19
|
+
@param [in] grant_type= (sas_services)
|
|
20
|
+
Valid values are "password" or "authorization_code" (unquoted).
|
|
21
|
+
@param [out] outds= (work.mv_getusergroups)
|
|
22
|
+
The library.dataset to be created that contains the list of groups
|
|
20
23
|
|
|
21
24
|
|
|
22
25
|
@version VIYA V.03.04
|
package/viya/mv_getusers.sas
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
@file mv_getusers.sas
|
|
3
3
|
@brief Creates a dataset with a list of users
|
|
4
|
-
@details First, be sure you have an access token (which requires an app token)
|
|
4
|
+
@details First, be sure you have an access token (which requires an app token)
|
|
5
5
|
|
|
6
6
|
Using the macros here:
|
|
7
7
|
|
|
@@ -35,15 +35,17 @@
|
|
|
35
35
|
modifiedTimeStamp char(24),
|
|
36
36
|
state char(6)
|
|
37
37
|
|
|
38
|
-
@param access_token_var=
|
|
39
|
-
|
|
38
|
+
@param [in] access_token_var= (ACCESS_TOKEN)
|
|
39
|
+
The global macro variable to contain the access token
|
|
40
|
+
@param [in] grant_type= (sas_services) Valid values:
|
|
40
41
|
* password
|
|
41
42
|
* authorization_code
|
|
42
|
-
* detect - will check if access_token exists, if not will use sas_services
|
|
43
|
-
a SASStudioV session else authorization_code.
|
|
43
|
+
* detect - will check if access_token exists, if not will use sas_services
|
|
44
|
+
if a SASStudioV session else authorization_code.
|
|
44
45
|
* sas_services - will use oauth_bearer=sas_services
|
|
45
46
|
|
|
46
|
-
@param outds=
|
|
47
|
+
@param [out] outds= (work.mv_getusers)
|
|
48
|
+
The library.dataset to be created that contains the list of groups
|
|
47
49
|
|
|
48
50
|
|
|
49
51
|
@version VIYA V.03.04
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"https://raw.githubusercontent.com/sasjs/core/main/all.sas";
|
|
26
26
|
%inc mc;
|
|
27
27
|
|
|
28
|
+
%* generate random client details with openid scope;
|
|
29
|
+
%mv_registerclient(scopes=openid )
|
|
30
|
+
|
|
28
31
|
%* generate random client using consul token as input parameter;
|
|
29
32
|
%mv_registerclient(consul_token=12x34sa43v2345n234lasd)
|
|
30
33
|
|
|
31
|
-
%* generate random client details with all scopes;
|
|
32
|
-
%mv_registerclient(scopes=openid *)
|
|
33
|
-
|
|
34
34
|
%* specific client with just openid scope;
|
|
35
35
|
%mv_registerclient(client_id=YourClient
|
|
36
36
|
,client_secret=YourSecret
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
)
|
|
39
39
|
|
|
40
40
|
%* generate random client with 90/180 second access/refresh token expiry;
|
|
41
|
-
%mv_registerclient(scopes=openid
|
|
41
|
+
%mv_registerclient(scopes=openid
|
|
42
42
|
,access_token_validity=90
|
|
43
43
|
,refresh_token_validity=180
|
|
44
44
|
)
|
package/viya/mv_tokenauth.sas
CHANGED
|
@@ -28,20 +28,21 @@
|
|
|
28
28
|
|
|
29
29
|
https://blogs.sas.com/content/sgf/2019/01/25/authentication-to-sas-viya/
|
|
30
30
|
|
|
31
|
-
@param inds= A dataset containing client_id, client_secret, and auth_code
|
|
32
|
-
@param outds= A dataset containing access_token and refresh_token
|
|
33
|
-
@param client_id= The client name
|
|
34
|
-
@param client_secret= client secret
|
|
35
|
-
@param grant_type= valid values are "password" or "authorization_code"
|
|
31
|
+
@param [in] inds= A dataset containing client_id, client_secret, and auth_code
|
|
32
|
+
@param [in] outds= A dataset containing access_token and refresh_token
|
|
33
|
+
@param [in] client_id= The client name
|
|
34
|
+
@param [in] client_secret= client secret
|
|
35
|
+
@param [in] grant_type= valid values are "password" or "authorization_code"
|
|
36
36
|
(unquoted). The default is authorization_code.
|
|
37
|
-
@param code=
|
|
38
|
-
here
|
|
39
|
-
@param user= If grant_type=password then provide the username here
|
|
40
|
-
@param pass= If grant_type=password then provide the password here
|
|
41
|
-
@param access_token_var=
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
37
|
+
@param [in] code= ()
|
|
38
|
+
If grant_type=authorization_code then provide the necessary code here
|
|
39
|
+
@param [in] user= If grant_type=password then provide the username here
|
|
40
|
+
@param [in] pass= If grant_type=password then provide the password here
|
|
41
|
+
@param [in] access_token_var= (ACCESS_TOKEN)
|
|
42
|
+
The global macro variable to contain the access token
|
|
43
|
+
@param [in] refresh_token_var= (REFRESH_TOKEN)
|
|
44
|
+
The global macro variable to contain the refresh token
|
|
45
|
+
@param [in] base_uri= The Viya API server location
|
|
45
46
|
|
|
46
47
|
@version VIYA V.03.04
|
|
47
48
|
@author Allan Bowe, source: https://github.com/sasjs/core
|
package/viya/mv_tokenrefresh.sas
CHANGED
|
@@ -28,17 +28,18 @@
|
|
|
28
28
|
|
|
29
29
|
https://blogs.sas.com/content/sgf/2019/01/25/authentication-to-sas-viya/
|
|
30
30
|
|
|
31
|
-
@param inds= A dataset containing client_id and client_secret
|
|
32
|
-
@param outds= A dataset containing access_token and refresh_token
|
|
33
|
-
@param client_id= The client name (alternative to inds)
|
|
34
|
-
@param client_secret= client secret (alternative to inds)
|
|
35
|
-
@param grant_type= valid values are "password" or "authorization_code"
|
|
31
|
+
@param [in] inds= A dataset containing client_id and client_secret
|
|
32
|
+
@param [in] outds= A dataset containing access_token and refresh_token
|
|
33
|
+
@param [in] client_id= The client name (alternative to inds)
|
|
34
|
+
@param [in] client_secret= client secret (alternative to inds)
|
|
35
|
+
@param [in] grant_type= valid values are "password" or "authorization_code"
|
|
36
36
|
(unquoted). The default is authorization_code.
|
|
37
|
-
@param user= If grant_type=password then provide the username here
|
|
38
|
-
@param pass= If grant_type=password then provide the password here
|
|
39
|
-
@param access_token_var=
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
@param [in] user= If grant_type=password then provide the username here
|
|
38
|
+
@param [in] pass= If grant_type=password then provide the password here
|
|
39
|
+
@param [in] access_token_var= (ACCESS_TOKEN)
|
|
40
|
+
The global macro variable to contain the access token
|
|
41
|
+
@param [in] refresh_token_var= (REFRESH_TOKEN)
|
|
42
|
+
The global macro variable containing the refresh token
|
|
42
43
|
|
|
43
44
|
@version VIYA V.03.04
|
|
44
45
|
@author Allan Bowe, source: https://github.com/sasjs/core
|