-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add filter, risk and log endpoint clients #112
Conversation
logger: { info: () => {} }, | ||
}); | ||
|
||
const response = await APIFilterService.call( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Response for filter has such attributes:
{'action': 'allow', 'risk': 0.41, 'policy': {'id': ..., 'revision_id': ..., 'name': ...}, 'signals': {'datacenter_ip': {}}
}; | ||
|
||
describe('call', () => { | ||
it('handles track response', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
re. response the "log" action/endpoint will probably behave the same way as "track"
}; | ||
|
||
describe('call', () => { | ||
it('handles allow response', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Response for risk has such attributes:
{'action': 'deny', 'risk': 0.89, 'policy': {'id': '9999bb59-0d60-42d8-8e38-7179d445de90', 'revision_id': 'bc666b75-03e3-4e9e-4444-3226130bab4d', 'name': 'invalidemail'}, 'signals': {'unapproved_device_type': {}, 'unapproved_device': {}, 'unapproved_country': {}, 'datacenter_ip': {}}, 'device': {'fingerprint': 'flEzW_S8S8eYYccT-2HrIw', 'connected_users_count': 1}, 'failover': ..., 'failover_reason': ...}
LGTM. |
No description provided.