Changes for page Competent - iTrivio integration
Last modified by Petr Blšťák on 2024/09/18 11:55
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. pblstak1 +XWiki.osteffl - Content
-
... ... @@ -1,8 +6,3 @@ 1 -(% class="box errormessage" %) 2 -((( 3 -This section is currently under construction... please wait until is finished 4 -))) 5 - 6 6 = Software to be installed = 7 7 8 8 //Unless stated otherwise, newer stable versions of the program should work.// ... ... @@ -12,104 +12,30 @@ 12 12 ==== [[Competent 33>>doc:Main.Official manuals.Competent installation manual.WebHome]] ==== 13 13 14 14 15 -= Introduction =10 += Configuration = 16 16 17 - //On thispage weuse the term "Course" for bothiTrivio courses andtests.//12 +This configuration describes basic scenario where 18 18 19 -The integration of Competent and iTrivio provides features from both softwares merged together and accessible through the Competent. 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. 20 20 21 -When specific objects are created in Competent, they are automatically created in iTrivio as well. Competent stores the ID references to the iTrivio objects in its database. 22 22 23 - Thisapplies to creationof:19 += Prerequisities = 24 24 25 -* Users 26 -* Courses (Activities with the specific launch type iTrivio) 27 -* User-Course assignments 28 -* User-Course attempts 21 +[[Edit>>url:https://wikitest.educasoft.net/bin/edit/Dev%20Environment%20Setup/Competent%20%3C-%3E%20Itrivio/WebHome?section=1]] 29 29 30 -iTrivio application is accessible only throught specific links in Competent when: 23 +* [[Competent>>url:https://wikitest.educasoft.net/bin/view/Dev%20Environment%20Setup/Competent/]] installed and configured 24 +* [[Itrivio>>url:https://wikitest.educasoft.net/bin/view/Dev%20Environment%20Setup/iTrivio/]] installed and configured 31 31 32 -* editing a content of Course 33 -* playing a Course 34 -* displaying specific User-Course reports 26 +First be sure you can run both Apps separately ofc [[image:https://wikitest.educasoft.net/resources/icons/silk/emoticon_smile.png?cache-version=1585572528000||alt="emoticon_smile"]] Note on which address each of them runs (including ports). Then to link them: 35 35 36 - Thelinks toiTrivio contain a one time auto-login security token that approvesthecurrentuser'saction in iTrivio. There is no need fortheuser to log into iTrivio system manually.28 += Competent part = 37 37 38 - Bydefaulthepassword of a useriniTrivio is different(random) from his password inCompetent to preventdirectaccess to iTrivio. Werecommendto disableiTrivioemailing andto keep iTriviouser's passwordsecrettothe user.30 +[[Edit>>url:https://wikitest.educasoft.net/bin/edit/Dev%20Environment%20Setup/Competent%20%3C-%3E%20Itrivio/WebHome?section=2]] 39 39 40 -(% class="box warningmessage" %) 41 -((( 42 -**Modifying iTrivio directly (out of Competent platform) can cause synchronization issues, especially when manipulating with Users, Courses, User-Course attempts and assignments.** 43 -))) 32 +in application.properties, or in your own application-yourNameShortcut.properties file set the following propeties: 44 44 45 -The configuration below describes the basic scenario where 46 - 47 -* both iTrivio and Competent are fresh installations 48 -* login with the default iTrivio and Competent admin accounts were successfully tested 49 -* Competent will be the main platform to handle course creation/deletion, user management and user-course management. 50 - 51 -Contact Educasoft for specific configuration procedure in other, more complex scenarios (e.g. Competent is going to use existing iTrivio application already filled with course/user data). 52 - 53 -= Systems preparation = 54 - 55 -In order for the two systems to work together, we first have to create the basic structures they will operate with - users, folders etc. 56 - 57 -=== __Competent__ === 58 - 59 -If you have both systems as a fresh installations and you will use them only throught the Competent system, you can skip this step and go to the iTrivio preparation. 60 - 61 -1. We need to decide what subtypes we want to use for new Users and new Activites in the use case, when we would need to synchronize users and courses from iTrivio into Competent. This will not typically happen if you will use the systems as described above. 62 -1*. If you want new Users and Activities to be of default subtype, you dont need to create anything. 63 -1*. If you want new Users and Activities to be of some special subtype 64 -1**. Log into Competent as the admin user 65 -1**. switch to the Admin view 66 -1**. go to the page Settings, to the tab Subtypes and create new subtypes for User and Activity (click on the green plus icon, fill in the new subtype name and hit the Create button). 67 -1. Furthermore we need to create a folder, that would hold all the iTrivio courses in case of synchronization from iTrivio, so 68 -1*. Log into Competent as the admin user and switch to the Admin view (if you didn't already) 69 -1*. Go to the Competent page Activities and create a new folder named for example iTrivio Courses (click on the green plus icon, choose Folder, fill in it's name and click Save). 70 - 71 -=== __iTrivio__ === 72 - 73 -Here we need to create the users that will manipulate iTrivio courses and a folder to store them. 74 - 75 -1. Log into iTrivio as admin user and go to the **Courses & Tests** 76 -1. **Create a new folder** named for example Competent courses - this is where all your courses will be stored 77 -1. If you want the company default admin user to manage all the courses and users creation in iTrivio, skip to step 7), otherwise 78 -1. Go to **Administration **to the section **Users** 79 -1. **Create new user** that will be responsible for manipulating all objects in iTrivio (courses and users). Fill just his email, name and surename and assign him the role Administrator. 80 -1. Optionally you can create another new user that will be responsible only for creating new users in iTrivio 81 -1. Go to the **Usergroups administration** and create new usergroup (for ecample Competent users) - this is where all your new users will be assigned. 82 - 83 -=== __Databases info__ === 84 - 85 -Now we need to write down IDs of all the objects we just created (and some more). If you have both systems fresh installations, you did not create any specific subtypes in Competent and users in iTrivio, you can just use the default values from brackets. 86 - 87 -1. In __Competent__ database, in the table __subtype__ write down 88 -1*. **USER_SUBTYPE **(by default 1) = subtype ID of the default_user (column "name") or if you created a specific subtype, find it by its name and write down it's ID 89 -1*. **ACTIVITY_SUBTYPE **(by default 2) = subtype ID of the default_timeless_activity (column "name") that has "activity_type_id" = 1. If you created a specific subtype, find it by its name and write down it's ID 90 -1. In __Competent__ database, in the table __activity_set__ write down 91 -1*. **ACTIVITY_FOLDER **(by default 1) = ID of the folder you created for new itrivio courses (find by name in the column "name") 92 -1. In __iTrivio__ database, in the table __company__ write down 93 -1*. **COMPANY_ID **(by default 1) = ID of the company that will be synchornized with Competent (find by name in the column "name") 94 -1*. **COMPANY_URL **(by default empty) = value from the column "urlContext" of the company that will be synchornized with Competent (find by name in the column "name") 95 -1. In __iTrivio__ database, in the table __course__ write down 96 -1*. **COURSE_FOLDER **(by default 1) = ID of the folder that you created for new courses created from Competent (find by name in the column "name") 97 -1. In __iTrivio__ database, in the table __itrivio_user__ write down 98 -1*. If you skipped the steps 4) - 6) in iTrivio preparation and you are using fresh iTrivio instalation, just write down the default values 99 -1*. **ADMIN_CREATOR **(by default 2) = ID of the user that will be creating all the users and courses in iTrivio 100 -1*. **ADMIN_USER_CREATOR **(by default 2) = ID of the user that will be creating all the users in iTrivio 101 -1. In __iTrivio__ database, in the table __usergroup__ write down 102 -1*. **USERGROUP **(by default 1) = ID of the usegroup that all your new users will be assigned to 103 -1. In __iTrivio__ database, in the table __playerskintemplate__ write down 104 -1*. **PLAYER_TEMPLATE **(by default 1) = ID of the player that will play your iTrivio courses (this is optional as the system has a default player) 105 - 106 - 107 -= Configuration = 108 - 109 -=== __Competent__ === 110 - 111 -In the application.properties, or in your own application-yourNameShortcut.properties file set the following propeties: 112 - 113 113 * **competentItrivioIntegration.enabled=true** 114 114 //(true to allow the connection between apps)// 115 115 * **competentItrivioIntegration.itrivioCompanyUrlContext=/test** ... ... @@ -130,7 +130,7 @@ 130 130 //(ID of folder in iTrivio in which to create new Activites)// 131 131 * **competentItrivioIntegration.auth.userId=2** 132 132 //(ID of user in whose name the authorisation of running the course will be done?)// 133 -* **competentItrivioIntegration.auth.key=** 54 +* **competentItrivioIntegration.auth.key=Z1zzzQYY91mDNdGWKzoa** 134 134 //(secret key for JWT token)// 135 135 * **competentItrivioIntegration.auth.environment=demo** 136 136 //(authentication environment, used in JWT token I think)// ... ... @@ -137,6 +137,7 @@ 137 137 138 138 = iTrivio part = 139 139 61 +[[Edit>>url:https://wikitest.educasoft.net/bin/edit/Dev%20Environment%20Setup/Competent%20%3C-%3E%20Itrivio/WebHome?section=3]] 140 140 141 141 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. 142 142 ... ... @@ -148,7 +148,7 @@ 148 148 * **COMPETENT_INTEGRATION_USERGROUP_ID **//(ID of usergroup in iTrivio in which new users will be created)// 149 149 * **COMPETENT_INTEGRATION_COURSE_TEMPLATE **//(optional - ID of course template in which new courses will be created)// 150 150 151 -//(Save the settings... )// 73 +//(Save the settings... :-P )// 152 152 153 153 Now open the file /com.itrivio/src/main/resources/settings.properties and set the two following properties: 154 154 ... ... @@ -157,4 +157,6 @@ 157 157 158 158 = Final setting test = 159 159 82 +[[Edit>>url:https://wikitest.educasoft.net/bin/edit/Dev%20Environment%20Setup/Competent%20%3C-%3E%20Itrivio/WebHome?section=4]] 83 + 160 160 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.