<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>SAML on Kiran Chavala</title>
    <link>https://kiranchavala.github.io/tags/saml/</link>
    <description>Recent content in SAML on Kiran Chavala</description>
    <generator>Hugo -- 0.148.2</generator>
    <language>en-us</language>
    <lastBuildDate>Wed, 29 Oct 2025 10:43:03 +0530</lastBuildDate>
    <atom:link href="https://kiranchavala.github.io/tags/saml/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Cloudstack integration with Keycloak</title>
      <link>https://kiranchavala.github.io/blog/cloudstack-integration-with-keycloak/</link>
      <pubDate>Wed, 29 Oct 2025 10:43:03 +0530</pubDate>
      <guid>https://kiranchavala.github.io/blog/cloudstack-integration-with-keycloak/</guid>
      <description>&lt;hr&gt;
&lt;h2 id=&#34;categories-cloudstack-keycloak-integration-testing&#34;&gt;layout: post
title: &amp;ldquo;Testing CloudStack Integration with KeyCloak&amp;rdquo;
date: 2025-10-29
categories: [cloudstack, keycloak, integration, testing]&lt;/h2&gt;
&lt;h1 id=&#34;testing-cloudstack-integration-with-keycloak&#34;&gt;Testing CloudStack Integration with KeyCloak&lt;/h1&gt;
&lt;h2 id=&#34;steps-to-test-keycloak-with-cloudstack&#34;&gt;Steps to Test Keycloak with CloudStack&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Set up Docker environment&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;On a Linux host, ensure Docker is installed and that there’s connectivity to the CloudStack Management server.&lt;/li&gt;
&lt;li&gt;Example setup:
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Linux host IP: 10.0.32.236
CloudStack Management server IP: 10.0.34.45
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Run the Keycloak container&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;docker pull quay.io/keycloak/keycloak:23.0.6
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;docker run -d -p 8080:8080 &lt;span style=&#34;color:#ae81ff&#34;&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;&lt;/span&gt;  -e KEYCLOAK_ADMIN&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;admin &lt;span style=&#34;color:#ae81ff&#34;&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;&lt;/span&gt;  -e KEYCLOAK_ADMIN_PASSWORD&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;password &lt;span style=&#34;color:#ae81ff&#34;&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;&lt;/span&gt;  -e KC_PROXY&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;edge &lt;span style=&#34;color:#ae81ff&#34;&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;&lt;/span&gt;  --restart always &lt;span style=&#34;color:#ae81ff&#34;&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;&lt;/span&gt;  -v /keycloak:/opt/jboss/keycloak/standalone/data &lt;span style=&#34;color:#ae81ff&#34;&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;&lt;/span&gt;  --network&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;host &lt;span style=&#34;color:#ae81ff&#34;&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;&lt;/span&gt;  quay.io/keycloak/keycloak:23.0.6 start-dev
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Access the Keycloak UI&lt;/strong&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Cloudstack integration with AzureAD</title>
      <link>https://kiranchavala.github.io/blog/cloudstack-integration-with-azuread/</link>
      <pubDate>Mon, 18 Aug 2025 16:36:56 +0530</pubDate>
      <guid>https://kiranchavala.github.io/blog/cloudstack-integration-with-azuread/</guid>
      <description>&lt;ol&gt;
&lt;li&gt;Navigate to &lt;strong&gt;Azure portal &amp;gt; Services &amp;gt; Azure Entra ID&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;img loading=&#34;lazy&#34; src=&#34;https://kiranchavala.github.io/img/image1.png&#34;&gt;&lt;/p&gt;
&lt;ol start=&#34;2&#34;&gt;
&lt;li&gt;Click on &lt;strong&gt;Enterprise Applications &amp;gt; Create a New Application&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;img loading=&#34;lazy&#34; src=&#34;https://kiranchavala.github.io/img/image2.png&#34;&gt;&lt;br&gt;
&lt;img loading=&#34;lazy&#34; src=&#34;https://kiranchavala.github.io/img/image3.png&#34;&gt;&lt;/p&gt;
&lt;ol start=&#34;3&#34;&gt;
&lt;li&gt;Click on &lt;strong&gt;Create your own Application&lt;/strong&gt; and provide a name.&lt;br&gt;
Select &lt;em&gt;Integrate any other application you don&amp;rsquo;t find in the gallery (Non-gallery)&lt;/em&gt; &amp;gt; &lt;strong&gt;Create&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;img loading=&#34;lazy&#34; src=&#34;https://kiranchavala.github.io/img/image4.png&#34;&gt;&lt;br&gt;
&lt;img loading=&#34;lazy&#34; src=&#34;https://kiranchavala.github.io/img/image5.png&#34;&gt;&lt;/p&gt;
&lt;ol start=&#34;4&#34;&gt;
&lt;li&gt;Once in the Application, click on &lt;strong&gt;Set up Single Sign-on&lt;/strong&gt; and choose &lt;strong&gt;SAML&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;img loading=&#34;lazy&#34; src=&#34;https://kiranchavala.github.io/img/image6.png&#34;&gt;&lt;br&gt;
&lt;img loading=&#34;lazy&#34; src=&#34;https://kiranchavala.github.io/img/image7.png&#34;&gt;&lt;/p&gt;
&lt;ol start=&#34;5&#34;&gt;
&lt;li&gt;Make sure SSL is enabled on the Cloudstack management server.&lt;br&gt;
Login to Cloudstack UI &amp;gt; &lt;strong&gt;Global settings &amp;gt; Access &amp;gt; Saml&lt;/strong&gt; and set the following:&lt;/li&gt;
&lt;/ol&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;saml2.enabled=true
saml2.redirect.url=http://&amp;lt;mgmtip&amp;gt;:8080/client
saml2.sp.slo.url=http://&amp;lt;mgmtip&amp;gt;:8080/client
saml2.sp.sso.url=http://&amp;lt;mgmtip&amp;gt;:8080/client/api?command=samlSso
&lt;/code&gt;&lt;/pre&gt;&lt;ol start=&#34;6&#34;&gt;
&lt;li&gt;Restart the Cloudstack Management service and execute the API to get
the SP Metadata for Cloudstack&lt;br&gt;
&lt;br&gt;
&lt;a href=&#34;https://cloudstack.apache.org/api/apidocs-4.19/apis/getSPMetadata.html&#34;&gt;https://cloudstack.apache.org/api/apidocs-4.19/apis/getSPMetadata.html&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;&amp;gt; curl
&amp;gt; [http://\&amp;lt;mgmt\&amp;gt;:8080/client/api?command=getSpMetadata](http://10.0.32.234:8080/client/api?command=getSpMetadata) \&amp;gt;
&amp;gt; metadata.xml
&lt;/code&gt;&lt;/pre&gt;&lt;ol start=&#34;7&#34;&gt;
&lt;li&gt;Upload the generated metadata XML into Azure Entra&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;img alt=&#34;Upload Metadata&#34; loading=&#34;lazy&#34; src=&#34;https://kiranchavala.github.io/img/image8.png&#34;&gt;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
