Authentication

Home Forums LOINC FHIR Terminology Server Authentication

This topic contains 6 replies, has 2 voices, and was last updated by  Jesse James 3 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #270819

    Jesse James
    Participant

    Looking through the documentation, I did not see any section on authenticating to the fhir api. I wanted to test out a few of the sample requests but I am not sure the auth (0auth2 probably?).

    When popping the sample requests into the browser, I am still getting 401 when entering my basic credentials used to sign up.

    Any help would be appreciated!

    Thanks!

    #270822

    Tim Briscoe
    Keymaster

    Hi Jesse,

    It should just be a simple authentication with your LOINC username and password. As you are posting to the forum, I assume you are able to log in to loinc.org so surely it’s not a password error. I’d suggest trying a cURL command to issue an authenticated request. It will prompt for a password.

    curl -X GET -u myloincusername 'https://fhir.loinc.org/CodeSystem/$lookup?system=http://loinc.org&code=4544-3' --header 'Content-Type:application/fhir+json'

    Please let us know whether or not you are able to get it work.

    #270823

    Jesse James
    Participant

    When I do that curl request I still get the 401, I’ve even updated my password and tried again:

    <html>

    <head><title>401 Authorization Required</title></head>

    <body bgcolor=”white”>

    <center><h1>401 Authorization Required</h1></center>

    <hr><center>nginx/1.15.1</center>

    </body>

    </html>

    #270824

    Tim Briscoe
    Keymaster

    Jesse,

    I apologize for the problems. I am unable to reproduce this error. I have tried with a number existing accounts and created a new one specifically to test. All worked successfully with the previous curl command.

    Can I have your permission to change the password on your CragVFX account so I may test it directly? (You can update it thereafter, of course.) We did recently change our authentication storage so there’s a chance there could be something amiss with your account.

    #270825

    Jesse James
    Participant

    Yes, go for it! Thanks for digging in Tim!

    #270826

    Tim Briscoe
    Keymaster

    Jesse,

    I was able to get that cURL command to work with your username and a new password. I tried from multiple hosts. I’m going to email you the new password so you may try yourself. After your testing, I suggest changing your password via http://loinc.org/forgot

    #270827

    Jesse James
    Participant

    It’s working! Thanks Tim! Really appreciate you helping out so quickly!

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.