LionWeb-io / lionweb-repository

Reference implementation of LionWeb repository
Apache License 2.0
2 stars 1 forks source link

Adding possibility to configure a token #40

Closed ftomassetti closed 4 months ago

ftomassetti commented 4 months ago

This PR implements the mechanism discussed in #38 .

When a token is not set, a warning message is displayed. A warning message is also indicated for short tokens.

This would permit the use of a publicly reachable model repository without having to implement a more complicated setup. While this is not an advanced solution, it introduces a little bit of security (a little should be better than zero) while still permitting other users to hide the Lionweb repository behind a proxy performing authentication for more advanced setups.

Fix #38

ftomassetti commented 4 months ago

Thank you for the approval! I will merge it and open a separate issue about security