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

Sophisticate-ify domain checking, integrate into security module #30

Open
michaelpb opened this issue Oct 5, 2017 · 0 comments
Open

Comments

@michaelpb
Copy link
Owner

michaelpb commented Oct 5, 2017

  • Should also add in URL reversal to utils/urls.py
  • Have it respect the security thing in use
security.py
 51 async def check(typestring, querydata):
 52     if singletons.settings.SECURITY is not None:
 53         checker_class = singletons.settings.load('SECURITY')
 54     else:
 55         checker_class = DummySecurity
 56     checker = checker_class()
 57     url_string = querydata['url'][0]
 58     foreign_res = ForeignResource(url_string)
 59     foreign_res.validate()  # TODO move domain checks into this module
 60     await checker.check(typestring, querydata)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant