Skip to content

Handle Check

Mit diesem Call can die Gültigkeit des Auth Handles verifiziert werden:

Produktion:

shellscript
curl -X POST --location 'https://oauth2.authservice.hin.ch/v1/oauth/handle/' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {...}' \
--data '{ "authHandle": "{...}" }'

Testumgebung:

shellscript
curl -X POST --location 'https://oauth2.authservice-int.hin.ch/v1/oauth/handle/' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {...}' \
--data '{ "authHandle": "{...}" }'

Returnvalue bei ungültigem Handle:

http
HTTP/1.1 404 Not Found

Returnvalue bei gültigem Handle:

http
HTTP/1.1 200 OK
json
{ 
  "hinid":"musterh",
  "email":"hans.muster@hin.ch",
  "firstname":"Hans",
  "lastname":"Muster",
  "gln":"2000000010366",
  "verificationLevel":20,
  "personcodes":["10"] 
}

Werteliste für verificationLevel:
0: BASIC
10: PLUS
20: EPDG

Werteliste für personcodes:

-1 Device
0 Keine Person
1 Person allgemein
10 Arzt
11 Pflegefachperson
12 Physiotherapeut
13 Ergotherapeut
14 Ernährungsberater
15 Psychotherapeut
16 Zahnarzt
17 Apotheker
18 Chiropraktiker
19 Hebamme
20 Komplementärmediziner
21 Sozialdienstmitarbeiter
22 Logopäde
23 Stillberaterin
24 andere Gesundheitsfachperson

version 1.0.0