-
Notifications
You must be signed in to change notification settings - Fork 5
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
adding Keycloack #324
adding Keycloack #324
Conversation
src/settings.py
Outdated
ACCOUNT_LOGOUT_REDIRECT_URL ='/accounts/login/' | ||
|
||
|
||
SOCIALACCOUNT_ADAPTER = 'feedback.auth_adapter.FeedbackSocialAccountAdapter' | ||
|
||
SOCIALACCOUNT_ONLY = True | ||
ACCOUNT_EMAIL_VERIFICATION = 'none' | ||
|
||
SOCIALACCOUNT_PROVIDERS = { | ||
"openid_connect": { | ||
"APPS": [ | ||
{ | ||
"provider_id": "keycloak", | ||
"name": "Keycloak", | ||
"client_id": "", | ||
"secret": "", | ||
"settings": { | ||
"server_url": "", | ||
}, | ||
} | ||
] | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be moved to settings_production.py
?
This would also enable reading client_id
, secret
, and server_url
from settings_secret
like other secrets.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved SOCIALACCOUNT_PROVIDERS
to settings_production.py
. Added URL_PREFIX
to ACCOUNT_LOGOUT_REDIRECT_URL
in settings_production.py
as well.
added sign-in method with keycloack, tests and translations