sqlpad icon indicating copy to clipboard operation
sqlpad copied to clipboard

access without login

Open gpagomen opened this issue 8 years ago • 5 comments

Hi,

is there a way to configure reports for which no login is needed upfront?

gpagomen avatar Jul 26 '17 12:07 gpagomen

Hi @gpagomen. There is no way to access the list of queries or query editor without a login, but there is a way to allow them to be run without login.

To enable this feature go to the configuration page, and change Require Login for Table/Chart Links to false.

Once that is set you can send the table or chart link to someone or embed it in another view (url will be /query-table/:queryid or /query-chart/:queryid)

There were plans to implement a "view only" role and a no-login mode for sqlpad but I haven't had much time to work on it lately.

rickbergfalk avatar Aug 03 '17 03:08 rickbergfalk

Thank you, first of all, @rickbergfalk for this awesome product! The only thing that I'm missing much is your anticipated "view only" role for users. That would be so awesome! In our company would fulfill the 100% of our needs :)

energywave avatar Aug 28 '17 14:08 energywave

Is there a config parameter to do this on the docker image?

TheDave1022 avatar Feb 15 '22 16:02 TheDave1022

To enable this feature go to the configuration page, and change Require Login for Table/Chart Links to false.

What exactly do I have to do? I can't find anything about it in https://getsqlpad.com/#/configuration

ad-si avatar Jul 30 '22 11:07 ad-si

Hi @ad-si - that functionality was removed in v5 https://github.com/sqlpad/sqlpad/blob/master/CHANGELOG.md#breaking

Authentication can be disabled via these env vars:

# Set to `true` to disable authentication altogether.
SQLPAD_AUTH_DISABLED = "false"
# Specifies the role associated with users when SQLPAD_AUTH_DISABLED is set to true.
# Acceptable values: `admin`, `editor`.
SQLPAD_AUTH_DISABLED_DEFAULT_ROLE = "editor"

rickbergfalk avatar Aug 01 '22 21:08 rickbergfalk