Teachers' Curriculum Institute

How to Set Up Single Sign-On for TCI (Auth Tokens)

NEW Instructions as of 6/13/16. Please update your code.

Want your students to sign in to their TCI subscriptions directly from your school's portal? You'll need to implement Single Sign On.

Single Sign On will let you add a  "Connect to TCI" button for teachers and students on your portal.  

Setting Up Single Sign On:

1) Sign in to www.teachtci.com and click on the purple sign in button. 

2) As an Account Administrator, you should see a screen like this:


3) Click on the tab labeled "teachers" in the top navigation bar.  

4) Begin by creating your teacher accounts. If you have a lot of teachers you may want to click on "Batch Import." This will allow you to import up to 50,000 rows of data.

5) Next, create your student accounts by clicking on "Students" in the top nav. Again, if you have a lot of students, use "Batch Import" to import up to 50,000 students. 



6) After all your teacher accounts have been created, navigate to the "Students" in the top navigation bar.

7) Click on the button that  says "Export to CSV".Open the file to see the column for single_sign_on_token.


You should now have one file on your computer (for students).

In the database for your portal, you will now need to import the single sign on tokens into your database.
  • For students, use the student username as the uniq identifier to map our data to yours. (Hint: Some of our school districts use their school's student id as the student username for easy data mapping between systems.)

8) Once you have stored all the single sign on tokens, add the html snippets shown below to your portal. You will need to make one change to the snippet. Replace "INSERT_SINGLE_SIGN_ON_TOKEN" with the "single_sign_on_token " stored in each of your CSV files. You will need to do this for every student.

9) Congratulations. You now have Single Sign On. Please test a few students before rolling out to your school/district.

HTML Snippet:

Student Button: 
<form accept-charset="UTF-8"
action="https://student.teachtci.com/student/sign_in"
method="post">
   <input
type="hidden" name="auth_token" value="INSERT_SINGLE_SIGN_ON_TOKEN">
   <input
type="submit" name="commit" value="Connect to
TCI" style="background-color: #6e44ba; font-size: 14px; color: #EEE;
padding: 8px 10px; border: 1px solid #333; border-radius: 4px;
-moz-border-radius: 4px; -webkit-border-radius: 4px;"/>
</form>

Teacher Button: 
<form accept-charset="UTF-8"
action="https://subscriptions.teachtci.com/staff/sign_in"
method="post">
   <input
type="hidden" name="auth_token" value="INSERT_SINGLE_SIGN_ON_TOKEN">
   <input
type="submit" name="commit" value="Connect to
TCI" style="background-color: #6e44ba; font-size: 14px; color: #EEE;
padding: 8px 10px; border: 1px solid #333; border-radius: 4px;
-moz-border-radius: 4px; -webkit-border-radius: 4px;"/>
</form>  

Did you find this article helpful?