Instantiating IAM with a pre-defined and configurable client #678
-
For testing purposes, I would like to instantiate IAM with a pre-defined and configurable client. In the documentation, I see a reference to a "Test Client" but it does not work. Is this expected? Even if it would work, there is no way to specify:
I also tried to play with the APIs:
Defining the "Test Client" with environment variables would be great! Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Hi, Test Client is a simple web app that uses authorization code flow (i.e. grant type) or authorization code + PKCE (if you specify the code challenge method with this property |
Beta Was this translation helpful? Give feedback.
-
Ok so I probably misunderstood "Test Client". Then, is there a way to initialize an IAM instance with a predefined and configurable client? Thanks |
Beta Was this translation helpful? Give feedback.
-
If you are an IAM admin, you can modify the client named Test Client (which already has |
Beta Was this translation helpful? Give feedback.
If you are running the pre-release candidate (tag
v1.8.3.rc.20231211
of the docker image, or develop branch of source code) you can use the client_idadmin-client-rw
which has the predefined admin scopes.If this client is not the one you are looking at, you can anyhow use it for asking for an access token (with client credential flow for instance) and modify Test Client with
PUT http://<iam-host:port>/iam/api/clients/client
.