{"id":7068,"date":"2020-10-08T17:11:21","date_gmt":"2020-10-08T15:11:21","guid":{"rendered":"http:\/\/blog.via-internet.de\/?p=7068"},"modified":"2020-10-08T17:11:21","modified_gmt":"2020-10-08T15:11:21","slug":"keycloak-troubleshooting","status":"publish","type":"post","link":"https:\/\/via-internet.de\/blog\/2020\/10\/08\/keycloak-troubleshooting\/","title":{"rendered":"Keycloak | Troubleshooting"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Configuration<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Change Server Port<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">By default, executing standalone.sh (for Linux) \/ standalone.bat (for Windows) makes the server available at following urls:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">https:\/\/localhost:8443\/auth\/\nhttp:\/\/localhost:8080\/auth\/\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If we need to run multiple instance of server at different ports,  run the following command:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>For Linux:<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">standalone.sh -Djboss.socket.binding.port-offset=100\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>For Windows:<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">standalone.bat -Djboss.socket.binding.port-offset=100\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The above commands will add the offset of 100 to the defaults ports available for Keycloak server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, previously the ports where 8443 and 8000. Now the new ports become 8443 + 100 = 8543 and 8080 + 100 = 8180.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>References:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.keycloak.org\/docs\/3.2\/getting_started\/topics\/secure-jboss-app\/before.html\">https:\/\/www.keycloak.org\/docs\/3.2\/getting_started\/topics\/secure-jboss-app\/before.html<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Location of Server Logfile<\/h3>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\\standalone\\log<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Errors<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Client secret not provided in request<\/h3>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">{\"error\":\"unauthorized_client\",\"error_description\":\"Client secret not provided in request\"<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Possible Solution<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Change Access Type to <code>public<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"http:\/\/blog.via-internet.de\/wp-content\/uploads\/2020\/10\/keycloak-set-access-type-to-public.png\" alt=\"Keycloak - Set Access Type to PUBLIC\" class=\"wp-image-7069\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Additional Readings<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/codehumsafar.wordpress.com\/category\/keycloak\/\">https:\/\/codehumsafar.wordpress.com\/category\/keycloak\/<\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Configuration Change Server Port By default, executing standalone.sh (for Linux) \/ standalone.bat (for Windows) makes the server available at following urls: If we need to run multiple instance of server at different ports, run the following command: For Linux: For Windows: The above commands will add the offset of 100 to the defaults ports available for Keycloak server. For example, previously the ports where 8443 and 8000. Now the new ports become 8443 + 100 = 8543 and 8080 + 100 = 8180. References: https:\/\/www.keycloak.org\/docs\/3.2\/getting_started\/topics\/secure-jboss-app\/before.html Location of Server Logfile Errors Client secret not provided in request Possible Solution Change Access Type [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":7051,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[42],"tags":[],"class_list":["post-7068","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-keycloak"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/posts\/7068","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/comments?post=7068"}],"version-history":[{"count":0,"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/posts\/7068\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/via-internet.de\/blog\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/media?parent=7068"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/categories?post=7068"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/tags?post=7068"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}