{"id":7044,"date":"2020-10-03T11:38:46","date_gmt":"2020-10-03T09:38:46","guid":{"rendered":"http:\/\/blog.via-internet.de\/?p=7044"},"modified":"2020-10-03T11:38:46","modified_gmt":"2020-10-03T09:38:46","slug":"keycloak-getting-started","status":"publish","type":"post","link":"https:\/\/via-internet.de\/blog\/2020\/10\/03\/keycloak-getting-started\/","title":{"rendered":"Keycloak | Getting Started"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.keycloak.org\/\" data-type=\"URL\" data-id=\"https:\/\/www.keycloak.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">Keycloak<\/a> &#8211; Open Source Identity and Access Management for Modern Applications and Services<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Installation<\/h2>\n\n\n\n<h4 class=\"wp-block-heading\">Java<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Using AdoptOpenJDK8<\/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=\"\">brew info adoptopenjdk8<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Eclipse<\/h4>\n\n\n\n<h4 class=\"wp-block-heading\">Keycloak<\/h4>\n\n\n\n<h4 class=\"wp-block-heading\">WildFly<\/h4>\n\n\n\n<h2 class=\"wp-block-heading\">See Also<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/github.com\/thomasdarimont\/awesome-keycloak#example-projects\" data-type=\"URL\" data-id=\"https:\/\/github.com\/thomasdarimont\/awesome-keycloak#example-projects\" target=\"_blank\" rel=\"noreferrer noopener\">Awesome Keycloak<\/a><\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Troubleshooting<\/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<h3 class=\"wp-block-heading\">Additional Readings<\/h3>\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>Introduction Keycloak &#8211; Open Source Identity and Access Management for Modern Applications and Services Installation Java Using AdoptOpenJDK8 Eclipse Keycloak WildFly See Also Awesome Keycloak Troubleshooting 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 = [&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":[37,42,44],"tags":[],"class_list":["post-7044","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java","category-keycloak","category-learning"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/posts\/7044","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=7044"}],"version-history":[{"count":0,"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/posts\/7044\/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=7044"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/categories?post=7044"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/via-internet.de\/blog\/wp-json\/wp\/v2\/tags?post=7044"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}