{"id":2590,"date":"2025-08-12T12:31:27","date_gmt":"2025-08-12T12:31:27","guid":{"rendered":"https:\/\/www.devopsconsulting.in\/blog\/?p=2590"},"modified":"2025-09-15T13:40:49","modified_gmt":"2025-09-15T13:40:49","slug":"seamlessly-integrate-keycloak-sso-with-your-wordpress-site","status":"publish","type":"post","link":"https:\/\/www.devopsconsulting.in\/blog\/seamlessly-integrate-keycloak-sso-with-your-wordpress-site\/","title":{"rendered":"Seamlessly Integrate Keycloak SSO with Your WordPress Site"},"content":{"rendered":"\n<p><strong>Seamlessly Integrate Keycloak SSO with Your WordPress Site<\/strong><\/p>\n\n\n\n<p>In today&#8217;s digital landscape, providing a secure and streamlined login experience is crucial for user satisfaction and site management. Single Sign-On (SSO) offers a robust solution, and when it comes to open-source identity and access management, Keycloak is a powerful choice. This guide will walk you through setting up Keycloak SSO for your WordPress site, allowing users to log in with their Keycloak credentials.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Getting Started: Plugin Installation<\/h2>\n\n\n\n<p>The first step is to integrate your WordPress site with Keycloak. This can be accomplished by using a dedicated plugin.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>From your WordPress dashboard, navigate to <strong>Plugins<\/strong> and select <strong>Add New<\/strong>.youtube<\/li>\n\n\n\n<li>Search for &#8220;WordPress OAuth single sign-on&#8221; to find the necessary tool.youtube<\/li>\n\n\n\n<li>Install and activate the miniOrange OAuth Client Single Sign-On plugin.youtube<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Configuring Keycloak as Your Identity Provider<\/h2>\n\n\n\n<p>With the plugin activated, it&#8217;s time to set up Keycloak to handle authentication requests.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Realm and User Setup<\/strong><\/h2>\n\n\n\n<p>Within your Keycloak admin console, you&#8217;ll need to configure a realm, which is a space where you manage users, roles, and groups.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Create a new realm or select an existing one.youtube<\/li>\n\n\n\n<li>Establish roles for your users to define their permissions.youtube<\/li>\n\n\n\n<li>Add users to the realm and assign them a permanent password and the appropriate roles. You can also organize users into groups for easier management.youtube<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Client Configuration<\/strong><\/h2>\n\n\n\n<p>Next, you need to create a client in Keycloak that will represent your WordPress application.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In the <strong>Clients<\/strong> section, create a new client and set the client protocol to <strong>openid-connect<\/strong>.youtube<\/li>\n\n\n\n<li>Change the access type to <strong>confidential<\/strong> to ensure secure communication.youtube<\/li>\n\n\n\n<li>From the WordPress plugin, copy the callback URL and paste it into the <strong>Validate Redirect URI<\/strong> field in your Keycloak client settings.youtube<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Connecting WordPress to Keycloak<\/h2>\n\n\n\n<p>Now, let&#8217;s configure the WordPress plugin to communicate with Keycloak.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open the miniOrange OAuth Client plugin settings in WordPress and select Keycloak from the list of providers.youtube<\/li>\n\n\n\n<li>You will need your Client ID, Client Secret, Keycloak domain, and realm name.youtube<\/li>\n\n\n\n<li>Copy the <strong>Client ID<\/strong> from your Keycloak client settings and paste it into the corresponding field in the WordPress plugin.youtube<\/li>\n\n\n\n<li>In Keycloak, go to the <strong>Credentials<\/strong> tab of your client to find and copy the <strong>Client Secret<\/strong>, then paste it into the plugin settings.youtube<\/li>\n\n\n\n<li>Enter your Keycloak domain and realm name.youtube<\/li>\n\n\n\n<li>Save the configuration and use the <strong>Test Configuration<\/strong> button to ensure a successful connection.youtube<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Attribute Mapping and Final Touches<\/h2>\n\n\n\n<p>After a successful test, you can map user attributes from Keycloak to WordPress. This ensures that user information, such as usernames and emails, is correctly synchronized.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Navigate to the <strong>Attribute\/Role Mapping<\/strong> tab in the plugin.youtube<\/li>\n\n\n\n<li>Map the desired Keycloak attributes to the corresponding WordPress user fields.youtube<\/li>\n\n\n\n<li>Finally, to make the SSO login accessible to your users, go to <strong>Appearance &gt; Widgets<\/strong> in WordPress and add the miniOrange OAuth widget to your site.youtube<\/li>\n<\/ol>\n\n\n\n<p>Once these steps are completed, users visiting your site will see a login button that redirects them to Keycloak for authentication. After entering their credentials, they will be seamlessly logged into your WordPress site, enjoying a secure and efficient user experience.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Keycloak Single Sign-On (SAML) | Login into WordPress using Keycloak | WordPress Keycloak SSO\" width=\"900\" height=\"506\" src=\"https:\/\/www.youtube.com\/embed\/rPG8-lIIHHc?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Seamlessly Integrate Keycloak SSO with Your WordPress Site In today&#8217;s digital landscape, providing a secure and streamlined login experience is [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1407,1408,1399,1401,1403,1404,1405,1402,1400,1406],"class_list":["post-2590","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-configure-keycloak-for-wordpress","tag-keycloak-client-and-realm-setup","tag-keycloak-sso","tag-keycloak-wordpress-integration","tag-miniorange-oauth-plugin","tag-openid-connect-oidc","tag-saml-sso","tag-single-sign-on","tag-wordpress-sso","tag-wordpress-user-authentication"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Seamlessly Integrate Keycloak SSO with Your WordPress Site - DevOps Consulting<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.devopsconsulting.in\/blog\/seamlessly-integrate-keycloak-sso-with-your-wordpress-site\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Seamlessly Integrate Keycloak SSO with Your WordPress Site - DevOps Consulting\" \/>\n<meta property=\"og:description\" content=\"Seamlessly Integrate Keycloak SSO with Your WordPress Site In today&#8217;s digital landscape, providing a secure and streamlined login experience is [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.devopsconsulting.in\/blog\/seamlessly-integrate-keycloak-sso-with-your-wordpress-site\/\" \/>\n<meta property=\"og:site_name\" content=\"DevOps Consulting\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-12T12:31:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-09-15T13:40:49+00:00\" \/>\n<meta name=\"author\" content=\"Abhishek Singh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Abhishek Singh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.devopsconsulting.in\/blog\/seamlessly-integrate-keycloak-sso-with-your-wordpress-site\/\",\"url\":\"https:\/\/www.devopsconsulting.in\/blog\/seamlessly-integrate-keycloak-sso-with-your-wordpress-site\/\",\"name\":\"Seamlessly Integrate Keycloak SSO with Your WordPress Site - DevOps Consulting\",\"isPartOf\":{\"@id\":\"https:\/\/www.devopsconsulting.in\/blog\/#website\"},\"datePublished\":\"2025-08-12T12:31:27+00:00\",\"dateModified\":\"2025-09-15T13:40:49+00:00\",\"author\":{\"@id\":\"https:\/\/www.devopsconsulting.in\/blog\/#\/schema\/person\/fc397ba8be42f9fdd53450edfc73006f\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.devopsconsulting.in\/blog\/seamlessly-integrate-keycloak-sso-with-your-wordpress-site\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.devopsconsulting.in\/blog\/#website\",\"url\":\"https:\/\/www.devopsconsulting.in\/blog\/\",\"name\":\"DevOps Consulting\",\"description\":\"DevOps Consulting | SRE Consulting | DevSecOps Consulting | MLOps Consulting\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.devopsconsulting.in\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.devopsconsulting.in\/blog\/#\/schema\/person\/fc397ba8be42f9fdd53450edfc73006f\",\"name\":\"Abhishek Singh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.devopsconsulting.in\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/790feefe779852cdf344ca7318bf6c13832223c9b3c6bf4d217658412041026d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/790feefe779852cdf344ca7318bf6c13832223c9b3c6bf4d217658412041026d?s=96&d=mm&r=g\",\"caption\":\"Abhishek Singh\"},\"description\":\"I\u2019m Abhishek, a DevOps, SRE, DevSecOps, and Cloud expert with a passion for sharing knowledge and real-world experiences. I\u2019ve had the opportunity to work with Cotocus and continue to contribute to multiple platforms where I share insights across different domains: \u2022 DevOps School \u2013 Tech blogs and tutorials \u2022 Holiday Landmark \u2013 Travel stories and guides \u2022 Stocks Mantra \u2013 Stock market strategies and tips \u2022 My Medic Plus \u2013 Health and fitness guidance \u2022 TrueReviewNow \u2013 Honest product reviews \u2022 Wizbrand \u2013 SEO and digital tools for businesses I\u2019m also exploring the fascinating world of Quantum Computing.\",\"url\":\"https:\/\/www.devopsconsulting.in\/blog\/author\/abhishek\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Seamlessly Integrate Keycloak SSO with Your WordPress Site - DevOps Consulting","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.devopsconsulting.in\/blog\/seamlessly-integrate-keycloak-sso-with-your-wordpress-site\/","og_locale":"en_US","og_type":"article","og_title":"Seamlessly Integrate Keycloak SSO with Your WordPress Site - DevOps Consulting","og_description":"Seamlessly Integrate Keycloak SSO with Your WordPress Site In today&#8217;s digital landscape, providing a secure and streamlined login experience is [&hellip;]","og_url":"https:\/\/www.devopsconsulting.in\/blog\/seamlessly-integrate-keycloak-sso-with-your-wordpress-site\/","og_site_name":"DevOps Consulting","article_published_time":"2025-08-12T12:31:27+00:00","article_modified_time":"2025-09-15T13:40:49+00:00","author":"Abhishek Singh","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Abhishek Singh","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.devopsconsulting.in\/blog\/seamlessly-integrate-keycloak-sso-with-your-wordpress-site\/","url":"https:\/\/www.devopsconsulting.in\/blog\/seamlessly-integrate-keycloak-sso-with-your-wordpress-site\/","name":"Seamlessly Integrate Keycloak SSO with Your WordPress Site - DevOps Consulting","isPartOf":{"@id":"https:\/\/www.devopsconsulting.in\/blog\/#website"},"datePublished":"2025-08-12T12:31:27+00:00","dateModified":"2025-09-15T13:40:49+00:00","author":{"@id":"https:\/\/www.devopsconsulting.in\/blog\/#\/schema\/person\/fc397ba8be42f9fdd53450edfc73006f"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.devopsconsulting.in\/blog\/seamlessly-integrate-keycloak-sso-with-your-wordpress-site\/"]}]},{"@type":"WebSite","@id":"https:\/\/www.devopsconsulting.in\/blog\/#website","url":"https:\/\/www.devopsconsulting.in\/blog\/","name":"DevOps Consulting","description":"DevOps Consulting | SRE Consulting | DevSecOps Consulting | MLOps Consulting","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.devopsconsulting.in\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.devopsconsulting.in\/blog\/#\/schema\/person\/fc397ba8be42f9fdd53450edfc73006f","name":"Abhishek Singh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.devopsconsulting.in\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/790feefe779852cdf344ca7318bf6c13832223c9b3c6bf4d217658412041026d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/790feefe779852cdf344ca7318bf6c13832223c9b3c6bf4d217658412041026d?s=96&d=mm&r=g","caption":"Abhishek Singh"},"description":"I\u2019m Abhishek, a DevOps, SRE, DevSecOps, and Cloud expert with a passion for sharing knowledge and real-world experiences. I\u2019ve had the opportunity to work with Cotocus and continue to contribute to multiple platforms where I share insights across different domains: \u2022 DevOps School \u2013 Tech blogs and tutorials \u2022 Holiday Landmark \u2013 Travel stories and guides \u2022 Stocks Mantra \u2013 Stock market strategies and tips \u2022 My Medic Plus \u2013 Health and fitness guidance \u2022 TrueReviewNow \u2013 Honest product reviews \u2022 Wizbrand \u2013 SEO and digital tools for businesses I\u2019m also exploring the fascinating world of Quantum Computing.","url":"https:\/\/www.devopsconsulting.in\/blog\/author\/abhishek\/"}]}},"_links":{"self":[{"href":"https:\/\/www.devopsconsulting.in\/blog\/wp-json\/wp\/v2\/posts\/2590","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsconsulting.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsconsulting.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsconsulting.in\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsconsulting.in\/blog\/wp-json\/wp\/v2\/comments?post=2590"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsconsulting.in\/blog\/wp-json\/wp\/v2\/posts\/2590\/revisions"}],"predecessor-version":[{"id":2683,"href":"https:\/\/www.devopsconsulting.in\/blog\/wp-json\/wp\/v2\/posts\/2590\/revisions\/2683"}],"wp:attachment":[{"href":"https:\/\/www.devopsconsulting.in\/blog\/wp-json\/wp\/v2\/media?parent=2590"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsconsulting.in\/blog\/wp-json\/wp\/v2\/categories?post=2590"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsconsulting.in\/blog\/wp-json\/wp\/v2\/tags?post=2590"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}