Skip to content
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

[FIX] UI: create client-side random ids in any context. #8747

Open
wants to merge 1 commit into
base: release_10
Choose a base branch
from

Conversation

thibsy
Copy link
Contributor

@thibsy thibsy commented Dec 18, 2024

Hi folks,

I have introduced the usage of crypto inside our new TemplateRenderer to generate random strings. We noticed however that this object is only available in a secure context, which is not always the case for ILIAS - especially during development.

We also noticed that the URLBuilderToken implements a random string generation, similar to the use case of our TemplateRenderer. I therefore decided to introduce a new createRandomString() function which covers both of these usages. These strings are not cryptographically secure, but they are random enough for what they are used for.

Kind regards,
@thibsy

@thibsy thibsy added kitchen sink improvement javascript Pull requests that update Javascript code labels Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement javascript Pull requests that update Javascript code kitchen sink
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants