How do I make it public?

44 views
Skip to first unread message

Gabriel Gazola Milan

unread,
Nov 8, 2021, 4:29:48 PM11/8/21
to NYT Library Community
Hey there! We've got a Library instance up and running (it's awesome btw) but, unfortunately, as soon as we browse into our-app.herokuapp.com, it asks for signing in with Google. Is there a way of skipping this? Our docs need to be publicly available. Thanks in advance!

Andrew Fischer

unread,
Nov 8, 2021, 4:34:13 PM11/8/21
to NYT Library Community
Hi there,

Unfortunately there isn't an officially supported way to skip the login with Heroku. This is a highly requested feature we're looking into adding, though!

As a workaround, you could set the APPROVED_DOMAINS variable to ".*" (without the quotes) to enable all email addresses to be allowed through. Note that this will still ask for a Google sign-in, though.

-Andrew

Gabriel Gazola Milan

unread,
Nov 11, 2021, 12:18:23 PM11/11/21
to NYT Library Community
I see. Isn't it possible by using a custom userAuth.js, as you do in https://github.com/nytimes/library-customization-example ?
I've tried that, but still didn't work :(

Andrew Fischer

unread,
Nov 11, 2021, 12:25:34 PM11/11/21
to NYT Library Community
If you're able to run some customizations, using a copy of that userAuth.js in the linked repo should disable auth and set a default user. If you'd like to test it, you could set the that repo's git URL as the CUSTOMIZATION_GIT_REPO environment variable in heroku.

If that all works out, feel free to fork that customization example and add/remove/adjust whatever works for you!

-Andrew

Andrew Fischer

unread,
Nov 11, 2021, 2:02:18 PM11/11/21
to NYT Library Community
Hm, sorry it's not working for you. What URL are you using for that CUSTOMIZATION_GIT_REPO variable? is there anything in the build logs that indicate the repo was not cloned successfully? You should see "Cloning custom repo..." followed by "Installing custom packages..."
Reply all
Reply to author
Forward
0 new messages