Wiki source code of Competent - iTrivio integration
Version 4.1 by admin admin on 2020/04/27 06:45
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | = Software to be installed = | ||
2 | |||
3 | //Unless stated otherwise, newer stable versions of the program should work.// | ||
4 | |||
5 | ==== [[iTrivio 2.9.017>>doc:Main.Official manuals.iTrivio installation manual.WebHome]] ==== | ||
6 | |||
7 | ==== [[Competent 33>>doc:Main.Official manuals.Competent installation manual.WebHome]] ==== | ||
8 | |||
9 | |||
10 | = Configuration = | ||
11 | |||
12 | This configuration describes basic scenario where | ||
13 | |||
14 | * Both iTrivio and Competent are fresh installations | ||
15 | * Login with default iTrivio and Competent admin accounts were successfully tested | ||
16 | * Competent will be main platform to handle course creation and user management - after integration configuration there will be no need to access iTrivio as an administrator or student except modifying content of course and playing course. | ||
17 | |||
18 | (% class="box errormessage" id="HPrerequisities" %) | ||
19 | ((( | ||
20 | This section is currently under construction... please wait until is finished | ||
21 | ))) | ||
22 | |||
23 | |||
24 | |||
25 | = Competent part = | ||
26 | |||
27 | |||
28 | in application.properties, or in your own application-yourNameShortcut.properties file set the following propeties: | ||
29 | |||
30 | * **competentItrivioIntegration.enabled=true** | ||
31 | //(true to allow the connection between apps)// | ||
32 | * **competentItrivioIntegration.itrivioCompanyUrlContext=/test** | ||
33 | //(url name of the company for which you are setting the connection, leave empty if the only company is the root)// | ||
34 | * **competentItrivioIntegration.url=http:~/~/localhost:8080/** | ||
35 | //(url of the iTrivio app)// | ||
36 | * **competentItrivioIntegration.linkUrl=http:~/~/127.0.0.1:8080** | ||
37 | //(probably the same as above, this will be the url where the iTrivio courses will run, leave out the final slash! or the course address will show wrong)// | ||
38 | * **competentItrivioIntegration.itrivioCompanyId=1** | ||
39 | //(Id of the company you are setting it for)// | ||
40 | * **competentItrivioIntegration.userCreatorItrivioUserId=2** | ||
41 | //(ID of the user - existing in the system - in whos name the courses will be created. Someone with Admin roles)// | ||
42 | * **competentItrivioIntegration.newUserSubtypeId=1** | ||
43 | //(ID of subtype of user in Competent? - for when creating new users - probably)// | ||
44 | * **competentItrivioIntegration.newActivitySubtypeId=2** | ||
45 | //(ID of subtype of Activity? - when creating new activities - probably)// | ||
46 | * **competentItrivioIntegration.newActivityTargetFolderId=20** | ||
47 | //(ID of folder in iTrivio in which to create new Activites)// | ||
48 | * **competentItrivioIntegration.auth.userId=2** | ||
49 | //(ID of user in whose name the authorisation of running the course will be done?)// | ||
50 | * **competentItrivioIntegration.auth.key=Z1zzzQYY91mDNdGWKzoa** | ||
51 | //(secret key for JWT token)// | ||
52 | * **competentItrivioIntegration.auth.environment=demo** | ||
53 | //(authentication environment, used in JWT token I think)// | ||
54 | |||
55 | = iTrivio part = | ||
56 | |||
57 | |||
58 | Run the url [[http:~~/~~/localhost:8080/(companyUrl/)setCompanyConfig.html>>url:http://localhost:8080/setCompanyConfig.html?locale=cs]] of course on the domain your iTrivio runs and with the companyUrl of the comany you are setting this for. | ||
59 | |||
60 | Fill in the settings COMPETENT_INTEGRATION_: | ||
61 | |||
62 | * **COMPETENT_INTEGRATION_ENABLED**// (set to true)// | ||
63 | * **COMPETENT_INTEGRATION_TARGET_FOLDER_ID **//(ID of folder in iTrivio in which to create new Activites)// | ||
64 | * **COMPETENT_INTEGRATION_API_URL **//(url where competent is running eg.: //[[http:~~/~~/localhost:9000/>>url:http://localhost:9000/]]//)// | ||
65 | * **COMPETENT_INTEGRATION_USERGROUP_ID **//(ID of usergroup in iTrivio in which new users will be created)// | ||
66 | * **COMPETENT_INTEGRATION_COURSE_TEMPLATE **//(optional - ID of course template in which new courses will be created)// | ||
67 | |||
68 | //(Save the settings... )// | ||
69 | |||
70 | Now open the file /com.itrivio/src/main/resources/settings.properties and set the two following properties: | ||
71 | |||
72 | **environment.id=croco**// (must match the **competentItrivioIntegration.auth.environment** property from Competent)// | ||
73 | **jwt.key=CCzzzQYDR1HTdfe67zoa **//(must match the **competentItrivioIntegration.auth.key** property from Competent)// | ||
74 | |||
75 | = Final setting test = | ||
76 | |||
77 | Thats it, you should be good to go. Now run both Apps, DO NOT TOUCH ITRIVIO FROM NOW ON. Go to Competent, create some Activity and in Detail, set the RUN_TYPE (Typ spouštění) to iTrivio, then select in type and hit **Save and Create in iTrivio** button. If it works, you are almost good to go. Now try to Edit the course, add one page and then try to run it. if THAT works, you are all set. |