Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker image run doesn't show auth option #500

Open
shr207-iMerit opened this issue Nov 4, 2021 · 1 comment
Open

Docker image run doesn't show auth option #500

shr207-iMerit opened this issue Nov 4, 2021 · 1 comment

Comments

@shr207-iMerit
Copy link

shr207-iMerit commented Nov 4, 2021

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

@bugy
Copy link
Owner

bugy commented Nov 4, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants