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

adding Keycloack #324

Merged
merged 8 commits into from
Jan 27, 2025
Merged

adding Keycloack #324

merged 8 commits into from
Jan 27, 2025

Conversation

4-dash
Copy link
Member

@4-dash 4-dash commented Jan 22, 2025

added sign-in method with keycloack, tests and translations

@4-dash 4-dash changed the title sso impl adding Keycloack Jan 22, 2025
src/settings.py Outdated
Comment on lines 171 to 194
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": "",
},
}
]
}
}

Copy link
Member

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.

Copy link
Member Author

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.

@joachimschmidt557 joachimschmidt557 merged commit ad9e082 into master Jan 27, 2025
4 checks passed
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