Skip to content

v0.36.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@MohammadWaleed MohammadWaleed released this 03 Apr 09:26
· 19 commits to master since this release
81edfd7

Add commands for Realm localization routes: by @leyarotheconquerer
https://www.keycloak.org/docs-api/21.0.1/rest-api/index.html#_getrealmlocalizationlocales

Adds a FullTextLocation class in order to pass the given value to the server verbatim.

The Keycloak API expects a text/plain HTTP request for the PUT /{realm}/localization/{locale}/{key} request. All other locations targeting the body cause the content to be encoded, corrupting the value passed in by the user.

FullTextLocation provides a way to pass the parameter unaltered to the API. If you have alternate suggestions for how to accomplish this, I'd be happy to refactor the code.

It also follows the FullBodyLocation by setting the Content-Type header to 'text/plain' if it isn't set elsewhere.