defenseunicorns / uds-identity-config

https://uds.defenseunicorns.com/core/identity/
Apache License 2.0
0 stars 0 forks source link

Bug: Image not loading in Keycloak login #124

Open Madeline-UX opened 1 month ago

Madeline-UX commented 1 month ago

Current

Currently the Keycloak SSO is not displaying the UDS logo when a user is logging in to Leapfrog Ai. I am not sure if it is only occurring on leapfrog Ai or all sign on use cases in that environment. Missing in both the sign in screen and the create account screen.

https://sso.burning.boats/realms/uds/protocol/openid-connect/auth?client_id=uds-supabase&redirect_to=https%3A%2F%2Fai.burning.boats%2Fauth%2Fcallback&redirect_uri=https%3A%2F%2Fsupabase-kong.burning.boats%2Fauth%2Fv1%2Fcallback&response_type=code&scope=profile+email+openid&state=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3MTY5OTc3NjgsInNpdGVfdXJsIjoiaHR0cHM6Ly9haS5idXJuaW5nLmJvYXRzIiwiaWQiOiIwMDAwMDAwMC0wMDAwLTAwMDAtMDAwMC0wMDAwMDAwMDAwMDAiLCJmdW5jdGlvbl9ob29rcyI6bnVsbCwicHJvdmlkZXIiOiJrZXljbG9hayIsInJlZmVycmVyIjoiaHR0cHM6Ly9haS5idXJuaW5nLmJvYXRzL2F1dGgvY2FsbGJhY2siLCJmbG93X3N0YXRlX2lkIjoiMzNiNGQ3NDEtODNlNC00YTQzLWJiMTUtMzcwNDM1MzY3OGVmIn0.PzLC0fOPcXN-fB16JZy-G0ygw6r3DYBP8lCNspXWhF8

Image

Image

Update/Fix

As a user accessing any UDS environment When I am directed to the login screen I should see branding that shows I am accessing UDS (via logo)

Please update the logo that is not loading and ensure that it loads properly in all instances. It should look like the design below. If the current logo file is not work or missing - you can request a new file from @madeline

Image

mjnagel commented 3 days ago

Really strange behavior here...what I noticed is that the description field on the SSO spec appears to be related here. When I manually remove this line from the Package spec the image loads as expected. In a debug browser console it appears to be trying to load the image from a path matching that description.

It appears like this is a bug in our theme config, so going to move this issue over to uds-identity-config.

The relevant lines are here: https://github.com/defenseunicorns/uds-identity-config/blob/main/src/theme/login/template.ftl#L41-L43