Skip to content

adding Keycloack#324

Merged
joachimschmidt557 merged 8 commits intomasterfrom
sso_impl
Jan 27, 2025
Merged

adding Keycloack#324
joachimschmidt557 merged 8 commits intomasterfrom
sso_impl

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
@joachimschmidt557 joachimschmidt557 deleted the sso_impl branch May 3, 2025 07:18
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