Simon-Dirks / view-a-LOD

A flexible and configurable LOD viewer using SPARQL and Elastic endpoints.
GNU General Public License v3.0
1 stars 3 forks source link

Add RAZU CDN token as secret variable #101

Closed Simon-Dirks closed 2 months ago

RAZU-WBakker commented 2 months ago

Any iri referring to *.opslag.razu.nl should include a JWT-token. The JWT-token is subdomain-specific, so this implementation should support adding multiple domains with their own secrets. aka: bunnik.opslag.razu.nl/.... has a different secret than houten.opslag.razu.nl/....

See for the documentation: https://public-assets.scalia.nl/docs/SI-JWTProtection-ScaliaCDN-010323-1338.pdf

Simon-Dirks commented 2 months ago

I'm processing link + image URLs through a newly created "CDN service" now. Feel free to edit the function below to handle specific subdomains or more complex regex. Note that since we're not using a back-end, any "secrets" are not secret at all and publicly available in the HTML + js (as well as in this repo). This functionality should allow you, however, to remove the tokens from the URLs in the triple store.

https://github.com/Simon-Dirks/view-a-LOD/blob/3201e19a74d3f3e45f88da6a643fe2e5645bfd9a/src/app/services/cdn.service.ts#L28-L38