~maxiberta/canonical-identity-provider/vanilla-sshkeys-debug

« back to all changes in this revision

Viewing changes to src/identityprovider/middleware/honeypot.py

  • Committer: Ubuntu One Auto Copilot
  • Author(s): Maximiliano Bertacchini
  • Date: 2019-07-05 16:36:34 UTC
  • mfrom: (1693.1.1 drop_honeypot_from_delete_account)
  • Revision ID: otto-copilot@canonical.com-20190705163634-j6gtszogp9562au4
Exclude the delete account view from honeypot checks.

Merged from https://code.launchpad.net/~maxiberta/canonical-identity-provider/drop_honeypot_from_delete_account/+merge/369777

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
)
16
16
 
17
17
HONEYPOT_EXEMPT_URLS = re.compile(
18
 
    '^/api/|^/[A-Za-z_]+/\+openid|^/\+openid|^/\+saml|^/saml')
 
18
    '^/api/|^/[A-Za-z_]+/\+openid|^/\+openid|^/\+saml|^/saml|^/\+delete$')
19
19
 
20
20
 
21
21
class HoneypotMiddleware(upstream_honeypot_middleware):