Skip to content
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

Merged
merged 12 commits into from
Jun 2, 2021
Merged

Add filter, risk and log endpoint clients #112

merged 12 commits into from
Jun 2, 2021

Conversation

dawlib
Copy link
Contributor

@dawlib dawlib commented May 25, 2021

No description provided.

@dawlib dawlib self-assigned this May 25, 2021
@dawlib dawlib changed the title CAS-7032 Add filter, risk and log endpoint clients Add filter, risk and log endpoint clients May 25, 2021
src/models/filter-result.ts Outdated Show resolved Hide resolved
src/models/log-result.ts Outdated Show resolved Hide resolved
src/models/risk-result.ts Outdated Show resolved Hide resolved
logger: { info: () => {} },
});

const response = await APIFilterService.call(
Copy link
Contributor Author

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 () => {
Copy link
Contributor Author

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 () => {
Copy link
Contributor Author

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': ...}

@dawlib dawlib removed their assignment May 26, 2021
@bartes bartes marked this pull request as ready for review June 2, 2021 12:18
@bartes bartes added the wip label Jun 2, 2021
@bartes bartes removed the wip label Jun 2, 2021
@bartes bartes self-requested a review June 2, 2021 13:22
@dawlib
Copy link
Contributor Author

dawlib commented Jun 2, 2021

LGTM.

@bartes bartes self-assigned this Jun 2, 2021
@bartes bartes merged commit 2434e8c into develop Jun 2, 2021
@dawlib dawlib deleted the CAS-7032 branch June 2, 2021 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants