localauth0 icon indicating copy to clipboard operation
localauth0 copied to clipboard

Add API Endpoint for Dynamic Configuration Updates in localauth0.toml

Open sahroshan opened this issue 1 year ago • 4 comments

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.

sahroshan avatar Jul 25 '24 18:07 sahroshan

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 avatar Jul 25 '24 22:07 cottinisimone

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

cottinisimone avatar Aug 05 '24 12:08 cottinisimone

@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 avatar Sep 10 '24 16:09 sahroshan

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

sahroshan avatar Sep 10 '24 16:09 sahroshan