Repository navigation
|
Hello, apiVersion: k8s.keycloak.org/v2alpha1
kind: KeycloakOIDCClient
metadata:
finalizers:
- keycloakoidcclients.k8s.keycloak.org/finalizer
generation: 1
labels:
app: keycloak
app.kubernetes.io/component: keycloak
app.kubernetes.io/instance: keycloak
app.kubernetes.io/version: 26.8.0
version: 26.8.0
name: istio
namespace: keycloak
spec:
client:
appUrl: https://www.sylvain.desbureaux.lb.innovation.nif-cd.fr
enabled: true
loginFlows:
- DEVICE
- DIRECT_GRANT
- IMPLICIT
- STANDARD
redirectUris:
- http://localhost:18000
- http://localhost:8000
- https://www.toto.fr/oauth2/callback
webOrigins:
- +
keycloakCRName: keycloak
realm: redCreation in keycloak is fine, but when used, I see the following log line multiple times in keycloak:
If I go into the UI, go the client and click save, it disappears Did I do something wrong or is there something not yet available on thanks! |
Replies: 1 comment 5 replies
|
If you omit the auth stanza, the current behavior will create the client marked as public and without an authentication method - that causes the message you are seeing. The UI save is likely assigning a default authentication method client-secret, which is then also triggering the generation of a secret, so the message then goes away. Any changes you make in the UI however will be undone by any further changes you make to custom resource. The current expectation with KeycloakOIDCClient if you want to use a client secret is that you are explicitly provide the auth stanza with a reference to a Kubernetes Secret containing the value. |
If you omit the auth stanza, the current behavior will create the client marked as public and without an authentication method - that causes the message you are seeing.
The UI save is likely assigning a default authentication method client-secret, which is then also triggering the generation of a secret, so the message then goes away. Any changes you make in the UI however will be undone by any further changes you make to custom resource.
The current expectation with KeycloakOIDCClient if you want to use a client secret is that you are explicitly provide the auth stanza with a reference to a Kubernetes Secret containing the value.