Skip to content

Auto Login FakeShibboleth

Zak Morgan edited this page Jan 29, 2019 · 2 revisions

To set this up we have to modify two files. One is standard and the other needs information you can capture from the live service at uclapi.com

Changing your uclapi/backend/uclapi/.env file

Change the line

SHIBBOLETH_ROOT= http://localhost:8001

To say

SHIBBOLETH_ROOT= http://localhost:8001/auto

Making your fakeshibboleth/.env file

First navigate to the correct directory and then run

cp .env.example .env

Now navigate to uclapi.com in an incognito/private browser session. Log in to the dashboard and then go to uclapi.com/Shibboleth.sso/Session. Grab this info and use it to fill in the required fields in our new .env file.

And you're done! In the future FakeShibboleth will no longer ask you to enter your details!