script-server icon indicating copy to clipboard operation
script-server copied to clipboard

Docker image run doesn't show auth option

Open shr207-iMerit opened this issue 3 years ago • 1 comments

Hi @bugy thanks for the script. I have my conf.json file to run docker to serve on my ec2-instance IP address, however, whenever I run docker and open script-server on my ec2-instance, it only shows the index.html page and no authentication prompt even though I have configured Google OAuth. Is there something I am doing wrong here? { "port": 8904, "address": "12.345.456.789", "title": "my Script Server", "auth": { "type": "google_oauth", "client_id": "123456-someexampleid.apps.googleusercontent.com", "secret": "ABCDE123xyJzw" }, (PS: I have mentioned some arbitary values here, the address has my instance's IP) Here is what I get when I do a docker run for my script server: Screen Shot 2021-11-04 at 10 13 19 AM

Update: Upon checking the docker logs, I noticed that I seem to be getting a status code 304 on GET /conf and GET /auth/info. I have cleared my browser's cache and cookies and tried opening my ec2-ip address on an incognito tab on chrome, I still get the same issues. Hopefully this information helps as well! Thank you

shr207-iMerit avatar Nov 04 '21 17:11 shr207-iMerit

I have 2 assumptions:

  • there is some error on server when configuring google oauth. You could check logs/server.log file
  • may be you are using a different conf.json file. E.g. you mounted some different volume on script server. Or you updated the conf file without restarting the server

bugy avatar Nov 04 '21 20:11 bugy