Installation
This guide will walk you through fully installing SmarterID into your Moodle instance. There are four main sections to the installation which will take on average about 20 minutes to fully complete.
Obtain SmarterID LTI Keys
SmarterID LTI keys can be obtained via the SmarterID administrative area, to login to your account and locate your keys please follow these steps:
- Navigate to your SmarterID administrative area in your browser. Your SmarterID administrator was provided your account special administrative area URL. If you do not have this information please contact them.
- Enter your username and password and click Login.
- Once logged in, click Settings in the upper right, then click Integration Settings.
- Find the integration that you need to update, typically there will only be one integration. Then in the Actions menu, select Integration settings. This will drawer open the settings form, you will use the information on this form in subsequent steps below.
When moving to the next section, please open a new tab or browser window so you can easily reference the SmarterID integration settings when prompted to.
Install Javascript Snippet
SmarterID requires the LMS to have a snippet of Javascript on all pages so it can seamlessly communicate with the underlying identity service. This snippet of Javascript is very similar to what is used when embedding Google Maps or other embeddable services into web applications. Follow the steps below to complete the installation of the snippet into your Moodle environment.
- Click the Site administration menu option
- Click the Appearance tab.
- Click the Additional HTML option.
- Locate the field entitled Before BODY is closed. Paste the following snippet of code within that field. Ensure the placeholder for the deploymentSid is modified and set with the deploymentSid provided by SmarterID. You can find your deploymentSid from the integration settings page within the SmarterID administration area (see section above for how to access).
Once complete, the field will look similar to the following: - Click the Save Changes button.
Configure the External Service
External services can be added to individual courses or to all courses in an institution. The scope of your SmarterID implementation will dictate how you create these links. The process for adding the links to course is virtually the same regardless of method. It's much easier if you setup the external service in the site administration first.
- Click the Site administration menu option.
- Click on the Plugins tab.
- Scroll to the Webservices section and click External services.
- Under the Custom services section, click the Add link.
- Complete this form using the following information:
- Name: SmarterID
- Enabled: checked
- Click Add service
- The "Add functions to the service" page will then appear, click Add functions.
- The following functions will need to be added, once they have been selected click the Add functions button.
Note: all functions that are required are READ-ONLY. SmarterID does not require the ability to access any API functions that allow writing or making changes to the LMS.- core_course_get_contents
- core_course_get_courses
- core_user_get_users
- core_enrol_get_enrolled_users
- core_user_get_course_user_profiles
- core_webservice_get_site_info
- mod_lti_get_ltis_by_courses
- From the breadcrumb menu, click the Web services link.
- Click the Enable protocols link.
- Ensure that the REST protocol is marked to enabled. If the eye is closed, then click it to open the eye. Next, click Save changes. If the eye is already open, you may skip this step.
- From the breadcrumb menu, click the Web services link.
- Click the Create a specific user link to setup a service user that will be used for the SmarterID integration.
- Complete the user creation form. We suggest entering the following, however the user can be setup however makes the most sense for you organization.
- Username: SmarterID
- New Password: manually enter a suitable password
- First name, Surname, and Email address: enter whatever is suitable here, maybe the SmarterID product owner in your organization.
- Click Create user.
- Navigate back to the Web services area by clicking Site Administration > Plugins > Web services.
- Click the Create a token for a user link.
- Complete the token creation form based on the following:
- User: Select the service user that was created in step 13.
- Service: Select the service that was created in step 5.
- Click Save changes.
- Return back to the SmarterID administration tab or browser window from the initial section above.
- Copy the Token for the new user and paste it in the Token field within the SmarterID integration settings.
- Click Save on the SmarterID integration settings form.
Providing the User Proper Permissions
The service user that was setup in the previous step will need to have access to all the courses that SmarterID will be used. It is suggested that the user be either set with admin privileges or be enrolled automatically into each course. This is required so the service user can get course information via the Moodle API.
Configure as Site Administrator
- Click the Site administration menu option.
- Click on the Users tab.
- In the Permissions section, click the Site administrators link
- In the list of Potential Users, find the SmarterID Service user (or the user name you setup in the last step) and click on it and click the Add button/link.
- When prompted to confirm, click the Continue button.
This process granted the service user the ability to view the content in all courses which will allow SmarterID to function properly.
Configure the External Tool
- Click the Site administration menu option.
- Click on the Plugins tab.
- Scroll down to the Activity modules section and click Manage tools.
- Click the Configure a tool manually link.
- Complete the External tool configuration form as follows:
- Tool name: SmarterID
- Tool URL: Launch URL provided on the SmarterID integration settings page.
- Tool Description: Any description can be added here to help describe SmarterID to your students.
- Consumer key: Consumer key provided on the SmarterID integration settings page.
- Shared secret: Secret provided on the SmarterID integration settings page.
- Custom parameters: Add the custom parameter value of consumer_sid=CNa7ac5bcd5bf84d73a0214e8d8c3ca754. Do not include the quotes.
- Tool configuration usage: Select the option here that fits your organization the best.
- Default launch container: Select the option here that fits your organization the best. We suggest "Embed, without blocks"
- Content-Item Message: unchecked
- Share launcher's name with tool: Always
- Share launchers email with tool: Always
- Accept grades from the tool: Never
- Force SSL: checked
- Click Save changes.
- At this point the tool should be showing as a registered and active tool
Adding SmarterID to a Course
Once the External Tool has been created, then it can be added to a course's content. This section will walk-through placing a SmarterID link in a course.
- Navigate to the course dashboard.
- Click an Add an activity or resource link.
- Select External Tool, and then click the Add button.
- You will need to complete the form using the following settings:
- Activity Name: SmarterID (the name must be exactly this)
- Preconfigured tool: SmarterID
- You may also change the Activity Description and check any of the Display checkboxes.
- Click the Save and display button.
- SmarterID will launch.