This is great code, just a note: We require 2.6+, don't we? So we could use
```
return any(re.match(r, identity) for r in TRUSTED_PROVIDER_RES)
```