Endpoint Profile
Tento endpoint vrací informaci o autorizovaném uživateli:
Poznámka: Access Token, který je poslán na endpoint
/profile
, musí být vystaven se scopeprofile
Request
GET https://oauth.stormm.cz/profile
HEADER
Accept:application/json
Content-Type: application/json
Authorization:`Bearer a225bb6d1afb5ea825c2905a1c04e35a75641505`
BODY
Response
200
HEADER
Content-Type:application/json
BODY
{
"id": 27515,
"sub": "stepan",
"code": "666",
"name": "Štěpán",
"surname": "Lebruška",
"phoneNumber": "+420606066606",
"email": "lebruska@mmreality.cz"
}
401
HEADER
Content-Type:application/json
BODY
{
"message": "Problem with JWS verification Unsupported input"
}