This repository contains a simple PoC to demonstrate common access token (CAT) validation. Although this implementation validates certain claims according to the CAT Specification (CAT-5007-B), it's not implementing all aspects of the specification.
This implementation is not meant to be used in a production environment.
The validator defines a set of block lists, which could be used to invalidate tokens based on individual requirements. Custom blocklist are checked once token integrity has been confirmed and the "default" token validation has passed.
The following block lists are supported:
- Country
- User-Agent
- Subject
- CIDR
API endpoints for managing block lists are not protected, as we considered authentication and authorization out of scope for this PoC.
CAT validation checks the following claims:
issaudexpnbfcatucatmcathcatvcatgetoiso3166catnip(Excluding ASN)