GithubHelp home page GithubHelp logo

Comments (6)

Morgul avatar Morgul commented on June 16, 2024

Huh! You might be the first person to ever try to run the docker on their own. I haven't actually ever tried to do it outside of the official rpgkeeper.com site. Sorry some of this hasn't been smoothed out already.

So, let me explain what's going on here. The way Google's login works, you have to whitelist domains. Since I can't be expected to whitelist every domain for every person who ever wants to run this, if you're going to run your own instance, you'll have to set up your own google project with an oAuth endpoint.

This is a good place to get started; you'll want to make a set of web client credentials:

https://support.google.com/cloud/answer/6158849?hl=en

Now, there's actually a problem in the configuration:

image

Looks like I need to add an env variable for overriding the google clientID. Once I do that, you'll need to set CLIENT_ID and CLIENT_SECRET in docker to your own values, from the oauth credentials you set up.

from rpgkeeper.

Morgul avatar Morgul commented on June 16, 2024

I added CLIENT_ID so that should be in the latest docker. Let me know if you run into issues.

from rpgkeeper.

rjanderson9 avatar rjanderson9 commented on June 16, 2024

I'm also having this issue with the docker image, but Google Cloud Services is giving me a failed to load error when trying to create these credentials. Any suggestions?

from rpgkeeper.

Morgul avatar Morgul commented on June 16, 2024

Seems google has, yet again, changed their login libraries. sigh

I'll see about pushing up a fix for the google login shortly.

from rpgkeeper.

Morgul avatar Morgul commented on June 16, 2024

As of c6f6140, the docker image should work. You will likely have to specify the DOMAIN environment variable to control what domain is used for the callback.

If you don't specify DOMAIN, it will use /auth/google/redirect for the callback url, and that seems to grab the host from the request. However, if you're behind a reverse proxy (or using cloudflare to get https, like I am) it might get the wrong host name. So, with DOMAIN, you can override what comes before /auth/google/redirect.

from rpgkeeper.

EvelynBourgoin avatar EvelynBourgoin commented on June 16, 2024

Good to go, nice work!

from rpgkeeper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.