ncbo / virtual_appliance

Bioportal Virtual Appliance
5 stars 7 forks source link

API 401 error response contain hard coded URL for bioportal.bioontology.org #2

Closed alexskr closed 5 years ago

alexskr commented 7 years ago

API 401 error response contains hard coded URL explaining how to get API keys. it points to bioportal.bioontology.org instead of the URL defined in the config file. This is not ideal for the appliance

{ "status": 401, "error": "You must provide an API Key either using the query-string parameter apikey or the Authorization header: Authorization: apikey token=my_apikey. Your API Key can be obtained by logging in at http://bioportal.bioontology.org/account" }

alexskr commented 7 years ago

https://github.com/ncbo/ontologies_linked_data/blob/master/lib/ontologies_linked_data/security/authorization.rb

alexskr commented 5 years ago

implemented in https://github.com/ncbo/ontologies_linked_data/commit/4c4f60b443ce833c2993ee870594179527902f45