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

Add possibility to run the boreholes web application in anonymous read-only mode #1479

Merged
merged 9 commits into from
Sep 3, 2024

Conversation

danjov
Copy link
Contributor

@danjov danjov commented Aug 30, 2024

#1367

Configure anonymous (readonly) mode via API config

The anonymous readonly mode is configured via the app configuration of
the .NET API. The client retrieves the configuration setting from the
API along with the auth settings. This removes the need of handling two
separate environment variables.

To share the new configuration in the auth settings across react
components, a custom AuthProviderContext is introduced.

danjov added 7 commits August 30, 2024 16:37
The anonymous readonly mode is configured via the app configuration of
the .NET API. The client retrieves the configuration setting from the
API along with the auth settings. This removes the need of handling two
separate environment variables.

To share the new configuration in the auth settings across react
components, a custom AuthProviderContext is introduced.
src/client/src/api/authentication.js Dismissed Show dismissed Hide dismissed
@MiraGeowerkstatt
Copy link
Contributor

@tschumpr @flenny Ich ergänze hier noch einen Cypress Test für den anonymen User, wenn das für euch passt.

@MiraGeowerkstatt
Copy link
Contributor

@tschumpr @flenny Ich ergänze hier noch einen Cypress Test für den anonymen User, wenn das für euch passt.

War glaub doch keine gute Idee ;) schade

@MiraGeowerkstatt
Copy link
Contributor

@tschumpr @flenny habe beim Umsetzen gemerkt, dass noch etwas kaputt ist mit der Editierbarkeit einzelner Felder. Werde das in einem anderen PR nachreichen, da es auch für den eingeloggten Viewer gilt und nicht direkt mit dem read-only Modus zusammenhängt.

Copy link

sonarqubecloud bot commented Sep 2, 2024

@MiraGeowerkstatt MiraGeowerkstatt merged commit 941d131 into main Sep 3, 2024
13 checks passed
@MiraGeowerkstatt MiraGeowerkstatt deleted the anonymous-mode branch September 3, 2024 08:29
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

Successfully merging this pull request may close these issues.

4 participants