Skip to content

Insert client_name when upserting statically registered clients #4417

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

Merged

Conversation

defaultdino
Copy link
Contributor

@defaultdino defaultdino commented Apr 16, 2025

When using statically registered clients, the MAS consent screen fails to display a readable client_name when prompting the user for permission. It defaults to client_id instead of client_name, since the client_name field is not being populated during upsert (config sync).

I propose these changes so that statically registered clients are slightly more streamlined to dynamically registered ones, allowing the user to see an actual informative name instead of the ULID client_id for the client.

This would close my issue here

@defaultdino defaultdino changed the title insert client_name when upserting statically registered clients Insert client_name when upserting statically registered clients Apr 27, 2025
Copy link
Member

@sandhose sandhose left a comment

Choose a reason for hiding this comment

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

It would be nice to also being able to set other metadata like the client_uri, logo_uri etc., but I'm fine leaving it like that for now

@sandhose sandhose merged commit 9cfecaf into element-hq:main Apr 30, 2025
20 checks passed
@defaultdino
Copy link
Contributor Author

It would be nice to also being able to set other metadata like the client_uri, logo_uri etc., but I'm fine leaving it like that for now

Easy to add, I can make a lil PR for that some day soon

@defaultdino defaultdino deleted the feat/upsert-static-reg-client-name branch April 30, 2025 10:15
@sandhose sandhose added the T-Task Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks. label Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Task Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants