ga4gh / ga4gh-server

Reference implementation of the APIs defined in ga4gh-schemas. RETIRED 2018-01-24
http://ga4gh.org
Apache License 2.0
96 stars 91 forks source link

Auth0-based server fail to authenticate requests after login #1632

Open wdesouza opened 7 years ago

wdesouza commented 7 years ago

I am still trying to make a working example of Auth0-based server authentication. I followed the instructions. I can login into the server and see the landing page after authentication. However, when I tried to retrieve the datasets with the key it raises the "not authenticated" error:

curl -X POST --data '{}' -H 'Content-Type: application/json' -H 'Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6IndlbGwzMDlAZ21haWwuY29tIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJpc3MiOiJodHRwczovL3dlbGxpdG9uLmF1dGgwLmNvbS8iLCJzdWIiOiJhdXRoMHw1OGQwMzUxYWJkYWVlZDcwOWUyZDM0NDkiLCJhdWQiOiJWc3JudU11RmpVV253T1pWSDZaaFU4MmlNRWZmODJFWSIsImV4cCI6MTQ5MDA3NjcxMSwiaWF0IjoxNDkwMDQwNzExfQ.ehOVGYp3Nfk2VIV0-xreFNhgn7uLB1DRSkb1lU2qrNM' http://192.168.1.232/datasets/search
{"errorCode": 1430394319, "message": "Not authenticated. Use the key on the server index page."}

I also tried to use the @david4096 configuration but it failed to login (after sign up worked). I am using the server version 0.3.6 installed via pip.