gematik / ref-eRp-FD-Server

ARCHIVED - This project acts as reference implementation of main aspects of an e-prescription server designed by gematik.
Other
44 stars 3 forks source link

Error when using tool for creating access tokens with claims_patient.json #5

Closed pandalec closed 3 years ago

pandalec commented 4 years ago

Hey!

Using the new tool for creating an access token like mentioned in the docs results in error: Access Token Error: Invalid profession!! The access token is created with server/examples/claims_patient.json. Using a new claims.json with similar content and change professionOID to 1.2.276.0.76.4.30 (oid_arzt) access is working properly. Don't know if this an error or happens on purpose.

Best regards, parsi

Gematik-Entwicklung commented 4 years ago

Hi @parsifallo,

the readme is a bit missleading here, we will clearify that. In general, an ACCESS_TOKEN enables the user of the service to execute different operations. The provided example generates a ACCESS_TOKEN for a Patient but patients are not allowed to create or activate Tasks, which is shown in the other examples. To successfully execute the other examples, you need a ACCESS_TOKEN with a different profession, as you already noticed.

Best regards, gematik Dev-Team.

pandalec commented 4 years ago

Hi dev Team, ok great, thank you again for your quick response! BR, parsi