jacekkow/keycloak-protocol-cas

"Client already exists" when editing Client ID of existing entry

mrzxy opened this issue · 8 comments

mrzxy commented
"Client already exists" when editing Client ID of existing entry
mrzxy commented

image

You have selected "Client Protocol: openid-connect". This plugin is for "Client Protocol: cas" only.

The error message indicates you have duplicate Client ID. I don't know what you're trying to accomplish, but it seems it is not related to this plugin at all. Report any issues with Keycloak (not keycloak-protocol-cas) upstream.

mrzxy commented

Sorry, I didn’t express it clearly. When I use this code repository, I will prompt this error when I create a new client. No matter whether the client Protocol is cas or saml, I also guarantee that my client id is unique. The incredible thing is that although the error is reported, client modify successfully

image

image

I was able to reproduce it - but in the example above you are not creating a new client, you are editing client ID of existing entry.

It looks like it was fixed in Keycloak 14 - could you verify it, too?

I'm closing this issue, assuming it is fixed in the latest Keycloak version.

If you still encounter this issue, let me know.

you can get around this issue on Keycloak 13 by creating the client. Then export the json.

Edit this json config file to include the redirectURL you need.

Then delete the client, and create a new one from importing the file