ontoportal-lirmm / annotators

Web service to add functionalities to the http://bioportal.bioontology.org and similar ontology annotators
5 stars 6 forks source link

Enable Authorization header for apikey token #20

Closed jonquet closed 7 years ago

jonquet commented 7 years ago

It seems we cannot pass the apikey parameter other than via the URL for the annotators using the proxy.

e.g., http://services.bioportal.lirmm.fr/annotator/?text=le mélanome est une mauvaise maladie&ontologies=MSHFRE&longest_only=false&exclude_numbers=false&whole_word_only=true&exclude_synonyms=false&expand_mappings=false&score=cvalue&apikey=XX works but without apikey in the URL it does not.

Is this simple to activate ?

twktheainur commented 7 years ago

It should be relatively trivial by copying the headers from one query to the next. I think that's why it doesn't work with the Authorization field at the moment