umap icon indicating copy to clipboard operation
umap copied to clipboard

OIDC missing from manifest

Open nicoduck opened this issue 7 months ago • 2 comments

Describe the bug I'm using umaps OIDC connection with authentik, Updating umap to one of the newer versions (I only tried 3.0.4 and 2.9.3, from 2.6) broke the integration. Webinterface shows "Oops, server error..." instead of a login screen. CLI shows: ValueError: Missing staticfiles manifest entry for 'umap/img/providers/oidc.png'

I can confirm, the staticfiels.json does not include anything oidc related. To Reproduce Steps to reproduce the behavior:

  1. configure oidc
  2. Try to login with oidc
  3. See error

Expected behavior Login prompt appears

Desktop:

  • OS: any
  • Browser any

Additional context OIDC config in umap.conf:

SOCIAL_AUTH_OIDC_ENDPOINT='xxxxx'
SOCIAL_AUTH_OIDC_KEY='xxxxx'
SOCIAL_AUTH_OIDC_SECRET='xxxxx'
LOGOUT_REDIRECT_URL='xxxxx'
SOCIAL_AUTH_LOGIN_REDIRECT_URL = "xxxxx"

AUTHENTICATION_BACKENDS = (
    "social_core.backends.open_id_connect.OpenIdConnectAuth",
    "django.contrib.auth.backends.ModelBackend",
)
SOCIAL_AUTH_REDIRECT_IS_HTTPS = True
SOCIAL_AUTH_RAISE_EXCEPTIONS = False
SOCIAL_AUTH_OIDC_SCOPE = ['groups']
SOCIAL_AUTH_BACKEND_ERROR_URL = "/"

I've also included a custom css for the login screen. Umap config: UMAP_CUSTOM_STATICS="/srv/umap/custom/static"

CSS file:

.login-grid .login-oidc {
            background-image: url("https://xxxx/static/dist/assets/icons/icon.svg");
    }

Removing the custom CSS file (also from config) didn't change anything. I assume a generic oidc png has to be included in the staticfiles.json and have a valid png in static files.

nicoduck avatar Apr 24 '25 18:04 nicoduck

I've dug a bit deeper. I've now found the respective directory (/venv/lib/python3.12/site-packages/umap/static/umap/img/providers/). My manual CSS workaround is not needed anymore and I've removed that configuration. Instead, I've created a custom/static/umap/img/providers/oidc.png file, which is automatically ingested and used. I think this is the intended way, maybe documentation can be improved, especially when upgrading from earlier versions?

nicoduck avatar Apr 24 '25 23:04 nicoduck

Hello @all: I need the OIDC Feature. Is this supportet officaly? If no, why?

greetings

Lord-KalEl avatar Jun 19 '25 03:06 Lord-KalEl