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

Add API Endpoint for Dynamic Configuration Updates in localauth0.toml #89

Open
sahroshan opened this issue Jul 25, 2024 · 4 comments
Open

Comments

@sahroshan
Copy link

Thank you for this project.

Description

The project currently uses localauth0.toml to configure tokens or responses. This static configuration file can contain custom claims, which are included in the generated tokens. However, there is no way to dynamically update this configuration to test different scenarios, such as generating tokens without certain claims for fail condition testing.

Problem

To effectively use this project in unit testing, the ability to generate tokens with various configurations on-the-fly is needed. For example, an application may require custom claims like user_email. Currently, once this claim is configured in localauth0.toml, it cannot be easily excluded or modified for testing different conditions, including negative test cases.

@cottinisimone
Copy link
Contributor

Hello @sahroshan,

Thank you reporting and using Localauth0!

We already have an open issue #27 and we'll take care of this as soon as possible

@cottinisimone
Copy link
Contributor

Ehi @sahroshan , today we merged this PR. Before the actual release would you like to be our beta tester for this change?

@sahroshan
Copy link
Author

@cottinisimone Thanks for the changes.
permissions api is working fine. But could not find any documentation about the custom claims.

Can you please add custom claims documentation also.

@sahroshan
Copy link
Author

@cottinisimone may be publishing to https://testcontainers.com/modules/ would help this project.

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

No branches or pull requests

2 participants