ЕСОЗ - публічна документація

MIS Authorization Test

n/nDescriptionInputsExpected ResultStep by Step ScriptActual Result
MISAT1

Doctor call WS over correct API-key

  • WS = GetDrugs()
  • Authorization - Doctor of MSP  
  • MSP access_type = broker, Valid 
  • API-key = MIS secret, Valid
  • MIS broker_scopes = drugs:read, Valid

Response 200

Get list of drugs

  1. Login as Doctor
  2. Call GetDrugs()
  •  
MISAT2Doctor call WS direct
  • WS = GetDrugs()
  • Authorization - Doctor of MSP  
  • MSP access_type = direct, Valid 

Response 200

Get list of drugs

  1. Login as Doctor
  2. Call GetDrugs()
  •  
MISAT3Doctor call WS over broker without API-key
  • WS = GetDrugs()
  • Authorization - Doctor of MSP  
  • MSP access_type = broker, Valid 
  • API-key = missing, Invalid
  • MIS broker_scopes = drugs:read, Valid

Response 401

Message "API-KEY header required !"

  1. Login as Doctor
  2. Call GetDrugs()
  •  
MISAT4Doctor call WS over broker with bad API-key
  • WS = GetDrugs()
  • Authorization - Doctor of MSP  
  • MSP access_type = broker, Valid 
  • API-key = broken, Invalid
  • MIS broker_scopes = drugs:read, Valid

Response 401

Message "API-KEY header required !"

  1. Login as Doctor
  2. Call GetDrugs()
  •  
MISAT5Doctor call WS with bad broker_scopes
  • WS = GetDrugs()
  • Authorization - Doctor of MSP  
  • MSP access_type = broker, Valid 
  • API-key = MIS secret, Valid
  • MIS broker_scopes = missing, Invalid

Response 422

Message "Incorrect broker settings!"

  1. Login as Doctor
  2. Call GetDrugs()
  • .
MISAT6Doctor call WS without needed broker scope
  • WS = GetDrugs()
  • Authorization - Doctor of MSP  
  • MSP access_type = broker, Valid 
  • API-key = MIS secret, Valid
  • MIS broker_scopes = empty, Valid

Response 422

Message "Scope is not allowed by broker!"

  1. Login as Doctor
  2. Call GetDrugs()
  • .
MISAT7HR call WS without scope over broker 
  • WS = GetDrugs()
  • Authorization - HR of MSP  
  • Role scope (drugs:read) = missing
  • MSP access_type = broker, Valid 
  • API-key = MIS secret, Valid
  • MIS broker_scopes = drugs:read, Valid
Response 403
  1. Login as HR
  2. Call GetDrugs()
  • .





  • .

ЕСОЗ - публічна документація