Skip to content

Implementation of CILogon and Dex OIDC authentication sources.#397

Merged
PhillipsOwen merged 21 commits intodevelopfrom
issue_396
Feb 23, 2026
Merged

Implementation of CILogon and Dex OIDC authentication sources.#397
PhillipsOwen merged 21 commits intodevelopfrom
issue_396

Conversation

@PhillipsOwen
Copy link

@PhillipsOwen PhillipsOwen commented Nov 12, 2025

Associated to MISM-23 ticket.

add CILogon and Dex OIDC authentication methods

@PhillipsOwen PhillipsOwen marked this pull request as draft November 12, 2025 12:46
@frostyfan109 frostyfan109 self-requested a review November 12, 2025 18:47
@PhillipsOwen PhillipsOwen marked this pull request as ready for review December 10, 2025 17:56
@frostyfan109 frostyfan109 changed the title Startup issue when configuring the color scheme Startup issue when configuring the color scheme and fix providers endpoint Feb 6, 2026
@frostyfan109 frostyfan109 changed the base branch from master to develop February 6, 2026 21:36
Comment on lines +14 to +33
# SECURITY WARNING: don't run with debug turned on in production!
# Empty quotes equates to false in kubernetes env.
DEBUG_STRING = os.environ.get("DEBUG", "")
if DEBUG_STRING.lower() == "false":
DEBUG_STRING = ""

DEBUG = bool(DEBUG_STRING)

if DEBUG:
from product.configuration import ProductSettings, ProductColorScheme

APPLICATION_BRAND = os.environ.get("BRAND", "")

PRODUCT_SETTINGS = ProductSettings(
brand=APPLICATION_BRAND,
title=APPLICATION_BRAND,
logo_url=f"/static/images/{APPLICATION_BRAND}/logo.png",
color_scheme=ProductColorScheme("#191348", "#0079bc"),
links=None,
)
Copy link
Contributor

Choose a reason for hiding this comment

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

Needs to get removed or rewritten to actually address the underlying issue rather than patching it out in here

Copy link
Author

Choose a reason for hiding this comment

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

Local debugging stuff removed.

for PROVIDER in OAUTH_PROVIDERS:
if PROVIDER != '':
THIRD_PARTY_APPS.append(f"allauth.socialaccount.providers.{PROVIDER}")
THIRD_PARTY_APPS.append("allauth.socialaccount.providers.openid_connect")
Copy link
Contributor

@frostyfan109 frostyfan109 Feb 6, 2026

Choose a reason for hiding this comment

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

Maybe should be added only when oidc is configured in the environment. Might be fine to always add it though. Needs confirmation

Comment on lines +63 to +66
def populate_user(self, request, sociallogin, data):
user = super().populate_user(request, sociallogin, data)
print('sociallogin.account.extra_data:', sociallogin.account.extra_data)
return user
Copy link
Contributor

Choose a reason for hiding this comment

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

this is just debug at the moment. Needs to be fleshed out

Copy link
Author

Choose a reason for hiding this comment

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

commented out. this could be used in the future to discover what some SSOs are providing.

@PhillipsOwen PhillipsOwen changed the title Startup issue when configuring the color scheme and fix providers endpoint Implementation of CILogon and Dex OIDC authentication sources. Feb 9, 2026
@PhillipsOwen PhillipsOwen marked this pull request as draft February 9, 2026 17:18
@PhillipsOwen PhillipsOwen marked this pull request as ready for review February 23, 2026 15:04
@PhillipsOwen PhillipsOwen merged commit d0b4adb into develop Feb 23, 2026
7 of 11 checks passed
@PhillipsOwen PhillipsOwen deleted the issue_396 branch February 23, 2026 21:19
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.

Color scheme config issue

4 participants