dmitry-viskov / pylti1.3

LTI 1.3 Advantage Tool
MIT License
129 stars 69 forks source link

Canvas LMS: Must have an active user session #61

Open NaurizAitbai opened 2 years ago

NaurizAitbai commented 2 years ago

Hello. I have an LTI project with pylti1.3. And I have fresh installed Canvas LMS. It works on Firefox, but not working on Chrome.

image image image

Canvas LMS from stable branch.

ssilverm commented 2 years ago

I've seen this error before on self hosted canvas installs. Happening to me too. No idea how to fix it though.

NaurizAitbai commented 2 years ago

@ssilverm I fixed the problem by adding secure: true in session_store.yml. And this will automatically add Secure;SameSite=None to normandy_session.

But is this only solution?

ssilverm commented 2 years ago

@NaurizAitbai You are a life saver. That fixed my system. It's now working in Chrome for me after doing that.

On my machine I don't use Dory/Dinghy

This is what I do when I build Canvas after switching to stable branch: Say no to dory, yes to everything else ./script/docker_dev_setup.sh

Add the domain you want to use to the VIRTUAL_HOST env var and ports to Web Service in docker-compose.override.yml ports:

nano docker-compose.override.yml

Setup domains in domains.yml nano config/domain.yml

Set it all up to autostart on boot... Add restart: always to docker-compose.override.yml services

Run it all! docker-compose up -d docker-compose logs -f