Produced by Araxis Merge on 9/9/2019 5:42:07 PM Eastern Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
# | Location | File | Last Modified |
---|---|---|---|
1 | Webvram-v4.zip\20190725-webvram-source.zip\Launchers\CcowLauncherPrototype | Program.cs | Tue Jul 23 23:11:38 2019 UTC |
2 | Webvram-v4.zip\20190725-webvram-source.zip\Launchers\CcowLauncherPrototype | Program.cs | Fri Sep 6 13:24:07 2019 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 3 | 270 |
Changed | 2 | 4 |
Inserted | 0 | 0 |
Removed | 0 | 0 |
Whitespace | |
---|---|
Character case | Differences in character case are significant |
Line endings | Differences in line endings (CR and LF characters) are ignored |
CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
1 | using Syst em; | |
2 | using VERG ENCECONTEX TORLib; | |
3 | using Vist a.RPC; | |
4 | using Syst em.Configu ration; | |
5 | using Micr osoft.Exte nsions.Log ging; | |
6 | using Vist a.RPC.Proc edures.XUS ; | |
7 | ||
8 | namespace CcowLaunch erPrototyp e | |
9 | { | |
10 | class Program | |
11 | { | |
12 | pu blic stati c readonly string RP C_CLIENT_C ONFIG = "R pcClient.c onfig"; | |
13 | ||
14 | // source: C COW_const. pas | |
15 | pu blic stati c readonly string CC OW_LOGON_I D = "user. id.logon.v istalogon" ; | |
16 | pu blic stati c readonly string CC OW_LOGON_T OKEN = "us er.id.logo n.vistatok en"; | |
17 | pu blic stati c readonly string CC OW_LOGON_N AME = "use r.id.logon .vistaname "; | |
18 | pu blic stati c readonly string CC OW_LOGON_V PID = "use r.id.logon .vpid"; | |
19 | pu blic stati c readonly string CC OW_USER_NA ME = "user .co.name"; | |
20 | ||
21 | st atic void Main(strin g[] args) | |
22 | { | |
23 | var intP tr = Bapi3 2.RpcbCrea te(); | |
24 | ||
25 | Bapi32.R pcbCheckCm dLine(intP tr); | |
26 | Bapi32.R pcbStartPr ogSLogin(" test", int Ptr); | |
27 | ||
28 | ||
29 | Bapi32.R pcbFree(in tPtr); | |
30 | } | |
31 | ||
32 | /* | |
33 | / / uses com interop | |
34 | st atic void Main(strin g[] args) | |
35 | { | |
36 | var conf igFileMap = new ExeC onfigurati onFileMap { ExeConfi gFilename = RPC_CLIE NT_CONFIG }; | |
37 | ||
38 | var conf iguration = Configur ationManag er.OpenMap pedExeConf iguration( configFile Map, Confi gurationUs erLevel.No ne); | |
39 | var appS ettings = configurat ion.AppSet tings.Sett ings; | |
40 | ||
41 | var vist aHostname = appSetti ngs["vista Hostname"] .Value; | |
42 | var vist aPort = ap pSettings[ "vistaPort "].Value; | |
43 | var acce ssCode = a ppSettings ["accessCo de"].Value ; | |
44 | var veri fyCode = a ppSettings ["verifyCo de"].Value ; | |
45 | ||
46 | var logi nString = accessCode + ";" + v erifyCode; | |
47 | var shar edBroker = new Share dBroker(); | |
48 | sharedBrok er.BrokerC onnect("te st", IShar edBrokerCl ient.Broke rClient, " URL :9401", tr ue, | |
49 | true , true, IS haredBroke rShowError Msgs.isemR aise, 5000 , loginStr ing, out v ar uniqueC lient, | |
50 | out var errorM sg); | |
51 | ||
52 | Console. WriteLine( loginStrin g); | |
53 | Console. ReadLine() ; | |
54 | } | |
55 | */ | |
56 | ||
57 | st atic void Main2(stri ng[] args) | |
58 | { | |
59 | var conf igFileMap = new ExeC onfigurati onFileMap { ExeConfi gFilename = RPC_CLIE NT_CONFIG }; | |
60 | ||
61 | var conf iguration = Configur ationManag er.OpenMap pedExeConf iguration( configFile Map, Confi gurationUs erLevel.No ne); | |
62 | var appS ettings = configurat ion.AppSet tings.Sett ings; | |
63 | ||
64 | var vist aHostname = appSetti ngs["vista Hostname"] .Value; | |
65 | var vist aPort = ap pSettings[ "vistaPort "].Value; | |
66 | var acce ssCode = a ppSettings ["accessCo de"].Value ; | |
67 | var veri fyCode = a ppSettings ["verifyCo de"].Value ; | |
68 | ||
69 | var logg erFactory = new Logg erFactory( ); | |
70 | var logg er = logge rFactory.C reateLogge r("RpcClie nt"); | |
71 | ||
72 | var rpcC lient = ne w RpcClien t(logger, vistaHostn ame, vista Port, fals e); | |
73 | rpcClien t.Login(ac cessCode.T oSecureStr ing(), ver ifyCode.To SecureStri ng()); | |
74 | ||
75 | var regu larToken = new Token Get(); | |
76 | rpcClien t.Call(reg ularToken) ; | |
77 | Console. WriteLine( regularTok en.Token); | |
78 | ||
79 | var ccow TokenGet = new CcowT okenGet(); | |
80 | rpcClien t.Call(cco wTokenGet) ; | |
81 | ||
82 | var ccow VaultParam = new Cco wVaultPara m(); | |
83 | rpcClien t.Call(cco wVaultPara m); | |
84 | ||
85 | var vaul tPasscode = ccowVaul tParam.Get TokenA() + ccowVault Param.GetT okenB(); | |
86 | ||
87 | var user Info = new GetUserIn fo(); | |
88 | rpcClien t.Call(use rInfo); | |
89 | ||
90 | var newP erson = us erInfo.Get NewPerson( ); | |
91 | ||
92 | rpcClient. Disconnect (); // URL | |
93 | ||
94 | var cont extorContr ol = new C ontextorCo ntrol(); | |
95 | contexto rControl.R un("Broker LoginModul e#", vault Passcode, true, "*") ; | |
96 | contexto rControl.S tartContex tChange(); | |
97 | ||
98 | var cont extItemCol lection = new Contex tItemColle ction(); | |
99 | contextI temCollect ion.Add(ne w ContextI tem() { Na me = CCOW_ LOGON_ID, Value = cc owTokenGet .GetDomain () }); | |
100 | contextI temCollect ion.Add(ne w ContextI tem() { Na me = CCOW_ LOGON_TOKE N, Value = ccowToken Get.GetTok en() }); | |
101 | contextI temCollect ion.Add(ne w ContextI tem() { Na me = CCOW_ LOGON_NAME , Value = newPerson. FullName } ); | |
102 | contextI temCollect ion.Add(ne w ContextI tem() { Na me = CCOW_ LOGON_VPID , Value = "" }); | |
103 | contextI temCollect ion.Add(ne w ContextI tem() { Na me = CCOW_ USER_NAME, Value = n ewPerson.F ullName }) ; | |
104 | ||
105 | contexto rControl.E ndContextC hange(true , contextI temCollect ion); | |
106 | ||
107 | var ccow Token = cc owTokenGet .GetToken( ); | |
108 | //Consol e.WriteLin e(ccowToke n); | |
109 | ||
110 | rpcClien t = new Rp cClient(lo gger, vist aHostname, vistaPort , false); | |
111 | rpcClien t.Connect( ); | |
112 | ||
113 | var sign onSetup = new Signon Setup(); | |
114 | rpcClien t.Call(sig nonSetup); | |
115 | ||
116 | var avCo de = new A vCode(regu larToken.T oken.ToSec ureString( )); | |
117 | rpcClien t.Call(avC ode); | |
118 | ||
119 | Console. WriteLine( avCode.Res ponse); | |
120 | ||
121 | Console. ReadLine() ; | |
122 | ||
123 | /* | |
124 | * | |
125 | * I $L( AVCODE) D | |
126 | 22 . I $E( AVCODE,1,2 )="~1" S D UZ=$$CHKAS H^XUSRB4(A VCODE),DUZ ("AUTHENTI CA | |
127 | TION")= "ASHTOKEN" Q | |
128 | 23 . I $E( AVCODE,1,2 )="~2" S D UZ=$$CHKCC OW^XUSRB4( AVCODE),DU Z("AUTHENT IC | |
129 | ATION") ="CCOWTOKE N" Q | |
130 | 24 . S DUZ =$$CHECKAV ^XUS($$DEC RYP^XUSRB1 (AVCODE)), DUZ("AUTHE NTICATION" )= | |
131 | "AVCODE S" | |
132 | ||
133 | ~2xwbccw 898-150919 _8 | |
134 | */ | |
135 | } | |
136 | } | |
137 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.