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

ImportError: Could not import 'boss.authentication.TokenAuthentication' for API setting 'DEFAULT_AUTHENTICATION_CLASSES'. ModuleNotFoundError: No module named 'boss'. #1

Open
Maestro1 opened this issue Jan 7, 2021 · 3 comments

Comments

@Maestro1
Copy link

Maestro1 commented Jan 7, 2021

I am getting ImportError: Could not import 'boss.authentication.TokenAuthentication' for API setting 'DEFAULT_AUTHENTICATION_CLASSES'. ModuleNotFoundError: No module named 'boss'. when trying to run my server

@movestill
Copy link
Member

Are you running a Boss DB? If you're not, you probably don't want to use this package. This package's intended use is for connecting Boss with Keycloak.

@Maestro1
Copy link
Author

Maestro1 commented Jan 8, 2021 via email

@movestill
Copy link
Member

Noo am not, am trying to use django withkeycloak authentication. I followed your tutorial but I keep getting either template not found /openid/callback/code=134323....

We make no guarantees that this work with a generic Django setup. You can see how our Django is setup here: https://github.com/jhuapl-boss/boss

This will have boss.authentication.TokenAuthentication but I have no idea if that's appropriate for your configuration.

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

No branches or pull requests

2 participants