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

Authentication method decision

Purpose

Method checks request with rules in AuthMethod table, and returns decision based on processed steps.

 

Specification

Link

API paragraph not found

Resource

/v1/tables/58f62b96e79e8521f51b5754/decisions

Scope

Not required

Components

API paragraph not found

Microservices

API paragraph not found

Protocol type

REST

Request type

POST

Sync/Async

API paragraph not found

Public/Private/Internal

Internal. Gandalf

 

Logic

Method checks request with rules in AuthMethod table, and returns decision based on processed steps.

 

Request structure

See on Apiary

Example:

{ "phone_availability": true, "preferable_auth_method": "OTP_TRUSTEE" }

 

Authorize

Request to process the request using a token in the headers

 

Headers

Наприклад:

  • Content-Type:application/json

  • X-Application:58eca20fe79e8563e803dc18

  • Authorization:Basic YmJlMGUxMGFkMTc4ZTBlMGY3MmM1Nzg4NjU0ZTQ1MDkwNTFhYjAzMzpmODQ4ZTIyNjFiYWM4M2EzZjhkMjM4ODc4NzUxOWMxZTQzZjViYjAx

 

Request data validation

API paragraph not found

 

Processing

API paragraph not found

 

Response structure

See on Apiary

Example:

{ "meta": { "code": 200 }, "data": { "_id": "58f70df5e79e8521f451dcf0", "table": { "_id": "58f62b96e79e8521f51b5754", "title": "AuthMethod", "description": "Authentication method decision", "matching_type": "decision", "variant": { "_id": "58f62b96e79e8521f51b5753", "title": "AuthMethod", "description": "Authentication method decision" } }, "application": "58eca20fe79e8563e803dc18", "title": "method is OTP_TRUSTEE", "description": "Phone available and method OTP_TRUSTEE", "final_decision": "OTP_TRUSTEE", "request": { "phone_availability": true, "preferable_auth_method": "OTP_TRUSTEE" }, "created_at": "2017-04-19T07:12:53+0000", "updated_at": "2017-04-19T07:12:53+0000" } }

 

Post-processing processes

API paragraph not found

 

HTTP status codes

HTTP status code

Message

What caused the error

HTTP status code

Message

What caused the error

 200

 

 

 

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