-
Notifications
You must be signed in to change notification settings - Fork 34
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
Please pass configured settings for request headers to all AJAX requests. #448
Comments
Yes I agree. This was registered as an issue in #187 . |
@tfrancart should i add an option to adapt the datasource property? From
or for digest auth:
Advantages:
Disadvantages:
|
Salut @SteinerPascal
I don't think this should belong to the configuration. The configuration is meant to be "purely" semantic, with the definitions and mappings to classes and properties - and to queries to populate the lists. But the gory auth details of how to authenticate to SPARQL endpoints belong to another level. Typically you can have an ontologist designing the config, and a programmer or devops configuring the auth details. Besides, this can be easily written in JSON but doing it in OWL (or future SHACL) config would require creating corresponding properties in the config-core or config-datasources ontologies. What I suggest is to instead pass it as a pure JSON object to Sparnatural, as a map of endpoint/options, something like: {
"http://non-default-endpoint.com" : {
"method":"POST",
"auth":{
"scheme":"digest",
"parameters": [
"realm": "<realm>",
" uri":"<url>",
"algorithm":"<algorithm>",
"etc": "..."
]
},
"http://another-endpoint.com" : {
// other configs for another endpoint
}
} I don't know if it is possible, but we could use exactly the same structure as for YasQE, so that the same config object can be used for both (?) Then, when issuing queries, we can use the options provided to issue the request, like at
So - pretty much what you propose, but not in the config and passed as pure technical parameters to the Sparnatural element. |
Done in #517 |
This is now done. The only place where headers are not passed is the initial call to load the configuration file (see #529 ) |
Working with secured SPARQL Endpoints I cannot pass authentication and request headers to all used requests.
In particular, the autocompletewidget uses its own AJAX requests, which do not inherit the configured properties of the Yasqe configuration.
It would be great if the Yasqe configuration could also be done via Typescript.
From a certain size of the created combined SPARQL query GET request are unsuitable.
So it would be great if that could be configurable as well.
The text was updated successfully, but these errors were encountered: