Skip to content

Conversation

@brianhelba
Copy link
Member

This is currently causing import errors in urls.py.

from resonant_settings.django_extensions import *
from resonant_settings.logging import *
from resonant_settings.oauth_toolkit import *
from resonant_settings.rest_framework import *
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While most of this file isn't needed, it does also configure some Django-specific settings which relate to authentication and security.

How does BatAI authenticate API requests currently (cookies, OAuth2, etc.)? Do you use the same authentication for both the Ajax requests from the SPA and for using the Swagger docs (or do you not use the Swagger docs at all)? I want to make sure Ninja stays configured appropriately and securely.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I thought I had replied to this already (must not have submitted).
The BatAI client uses Oauth for API Requests.
We don't use the Swagger docs but use the Ninja Api Docs. Those seem to use the same authentication as the django admin which looks like a cookies.

This is currently causing import errors in `urls.py`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants