Django and Universal login

I am working on a universal login for my Django application. I have checked the documentation but its not clear to me. I have 2 Django applications running on 4000 and 4001 port so if I logged in with universal login on one application I should be logged in to the second application. I want to know how to integrate it.
I have integrated SSO in my one application it is working but not know how to use universal login. Please provide a code sample if you have it.

When you redirect to the ULP on the second app, it will recognize you as logged in and immediately redirect back, without user interaction, giving you the access and ID tokens as requested.