Keycloak.Net icon indicating copy to clipboard operation
Keycloak.Net copied to clipboard

/auth prefix was removed in keycloak v17.0.1

Open liorpid opened this issue 2 years ago • 4 comments

Hi,

is it possible to remove the /auth prefix from the base url?

liorpid avatar Apr 06 '22 09:04 liorpid

I'm upgrading to Keycloak 18 as well.

Change needed here: https://github.com/lvermeulen/Keycloak.Net/blob/5870da22392273b1a6171769115ec7061a4b809a/src/Keycloak.Net/KeycloakClient.cs#L55

We could implement a conditional statement that will append or not append the "/auth" with a default value to append as not to break any current implementations when they upgrade.

For new implementations we can set a flag like appendAuthPath to true/false that will append the auth part or not..

@lvermeulen you ok with this, I'll have a PR out to you on Monday if you agree.

psavva avatar Jul 30 '22 04:07 psavva

Removal of the /auth is done via this PR, Also upgrading .net libraries, removed support for .net classic Please see Pull Request https://github.com/lvermeulen/Keycloak.Net/pull/79

psavva avatar Aug 02 '22 12:08 psavva

Hi, For information, you can use KC_HTTP_RELATIVE_PATH = "/auth" (or cli cmd : --http-relative-path) to avoid this modification. https://www.keycloak.org/server/all-config?q=http-relative-path

Best regards.

mferuglio avatar Oct 10 '22 14:10 mferuglio

Hi, For information, you can use KC_HTTP_RELATIVE_PATH = "/auth" (or cli cmd : --http-relative-path) to avoid this modification. https://www.keycloak.org/server/all-config?q=http-relative-path

Best regards.

This has now been made configurable

Please see: https://github.com/lvermeulen/Keycloak.Net/pull/79/commits/fde9afa762fafc84a336a51d6ab93be8fb8dc684

psavva avatar Oct 10 '22 14:10 psavva