<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Weiyu Fang on Medium]]></title>
        <description><![CDATA[Stories by Weiyu Fang on Medium]]></description>
        <link>https://medium.com/@weiyu-datawiza?source=rss-b99fd5aba412------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*OI58CsilKN4B1_zX</url>
            <title>Stories by Weiyu Fang on Medium</title>
            <link>https://medium.com/@weiyu-datawiza?source=rss-b99fd5aba412------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 13:30:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@weiyu-datawiza/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Add Azure AD authentication to a Node.js application using Datawiza in 5 mins]]></title>
            <link>https://weiyu-datawiza.medium.com/add-azure-ad-authentication-to-a-node-js-application-using-datawiza-in-5-mins-28ac0e9f748?source=rss-b99fd5aba412------2</link>
            <guid isPermaLink="false">https://medium.com/p/28ac0e9f748</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[oidc]]></category>
            <category><![CDATA[datawiza]]></category>
            <category><![CDATA[identity-aware-proxy]]></category>
            <dc:creator><![CDATA[Weiyu Fang]]></dc:creator>
            <pubDate>Tue, 24 Aug 2021 10:33:05 GMT</pubDate>
            <atom:updated>2021-08-24T10:33:05.745Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WIDgtxQ_MQwSsKrs.png" /></figure><p>Do you want to learn how to add authentication to your Node.js application? In this step-by-step tutorial, you will learn how to integrate a Node.js application with Azure AD using Datawiza to implement OIDC/OAuth SSO for the Node.js application.</p><h3>What is a Node.js application?</h3><p><strong>Node.js is an open-source, cross-platform, back-end JavaScript runtime environment that runs on the V8 engine and executes JavaScript code outside a web browser. </strong>Node.js lets developers use JavaScript to write command-line tools and for server-side scripting — running scripts server-side to produce dynamic web page content before the page is sent to the user’s web browser. Consequently, Node.js represents a “JavaScript everywhere” paradigm, unifying web-application development around a single programming language, rather than different languages for server-side and client-side scripts.</p><h3>Run a Node.js application</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kwopnDZZSfhp1OHh" /></figure><p>We use the sample offered in <a href="https://nodejs.org/en/docs/guides/getting-started-guide/">Node.js official Getting Started Guide</a> as the example in this section. The application running at port 3000 simply returns “Hello World.”</p><p>What is the best Node.js authentication library? <a href="http://www.passportjs.org/">Passport</a>, which has 19,131 stars in Github, is extremely flexible and modular. It has a comprehensive set of strategies supporting authentication using a username and password, Facebook, Twitter, and more. What’s more, it has a <a href="http://www.passportjs.org/packages/passport-azure-ad/">plugin</a> for Azure Active Directory. However, you still need to spend a lot of time to clearly understand the concepts about Azure AD, OIDC, Oauth2, and so on. You deserve a better solution, and we are building one that will reduce the time required down to hours or days, even minutes.</p><h3>Introduction to the Datawiza Platform</h3><p>The Datawiza Platform is a cloud-delivered, <a href="https://www.datawiza.com/blogs/why-access-management-as-a-service-amaas-why-now">SaaS-based access management solution</a>. It includes a data plane and a control plane: Datawiza Access Broker (DAB) and Datawiza Cloud Management Console (DCMC).</p><p><strong>DAB</strong> is a lightweight, container-based access proxy deployed close to your application via the sidecar (agent) or gateway mode. It talks to Azure AD on behalf of your applications, so you don’t need to worry about the integration work. <strong>DCMC</strong> is a cloud-based management console where you can configure and manage the policies of DABs. Such a SaaS-based design makes the whole platform much easier to use.</p><h4>Simple configurations using Datawiza Cloud Management Console</h4><p>Use your <strong>Azure AD Admin Account (this account should have the permission to create an app registration in the Azure AD tenant)</strong> to log in to the <a href="https://console.datawiza.com/">DCMC</a>.</p><p>Follow the tutorial in <a href="https://www.datawiza.com/blogs/add-authentication-nodejs-application">Integrating a web application with Azure AD using Datawiza in 5 mins</a> to create an application in DCMC. Note that when you configure the application, the port of <strong>Upstream Servers</strong> should be 3000 instead of 3001:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SUSeDO4D4hTJ4Yr-" /></figure><h3>Run DAB as a sidecar (agent) to your application</h3><p>After finishing the configuration in DCMC, you can run the DAB with the YAML file noted in the previous step. The docker-compose YAML file should then be like this:</p><pre>version: ‘3’<br>services:<br>  datawiza-access-broker:<br>  image: registry.gitlab.com/datawiza/access-broker<br>  container_name: datawiza-access-broker<br>  restart: always<br>  ports:<br>    — “9772:9772”<br>  environment:<br>    PROVISIONING_KEY: #############################<br>    PROVISIONING_SECRET: #############################</pre><p>Now, we can use docker-compose to create and start the DAB:</p><pre>docker-compose -f datawiza-access-broker up -d</pre><p>That’s it. After executing the command above, the Node.js application should have SSO enabled with Azure AD.</p><p>Now, let’s give it a try.</p><p>Open a browser and type in <a href="http://localhost:9772."><strong>http://localhost:9772</strong>.</a> You should see the Azure AD login page as follows. Note that if you are already logged into Azure AD in your browser, you may need to logout to see the login page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6TMCQV3J0JRjcvMt" /></figure><p>After logging in to Azure AD, the Node.js application will be shown.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jMxeGLOjX_8fpODh" /></figure><p>This tutorial has shown you how to <a href="https://www.datawiza.com/blogs/datawiza-automates-application-integration-for-microsoft-azure-active-directory">secure a Node.js application with Azure AD </a>using Datawiza — in minutes instead of hours or days. Get a free trial by <a href="https://console.datawiza.com/">signing in here</a>. Please email us at contact@datawiza.com if you need any help or have any questions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=28ac0e9f748" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Add Auth0 OIDC authentication to a web application using Datawiza in 5 mins]]></title>
            <link>https://weiyu-datawiza.medium.com/add-auth0-oidc-authentication-to-a-web-application-using-datawiza-in-5-mins-ec9db98cc862?source=rss-b99fd5aba412------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec9db98cc862</guid>
            <category><![CDATA[datawiza]]></category>
            <category><![CDATA[identity-aware-proxy]]></category>
            <category><![CDATA[auth0]]></category>
            <category><![CDATA[oidc]]></category>
            <dc:creator><![CDATA[Weiyu Fang]]></dc:creator>
            <pubDate>Thu, 01 Jul 2021 12:07:46 GMT</pubDate>
            <atom:updated>2021-07-01T12:07:46.360Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JUWJsrRIWeMJuGBT" /></figure><p>Traditionally, securing web applications by integrating them with cloud Identity Providers (IdP) has been a difficult task. It requires an understanding of cybersecurity best practices, OIDC/SAML protocols, and more. It also demands precious engineering time, as well as learning multiple types of SDKs distributed by the IdP. And companies can’t afford to shortcuts or they risk poor implementations that create potential security vulnerabilities.</p><h3>An easier way to secure applications with Auth0</h3><p>In our previous <a href="https://weiyu-datawiza.medium.com/integrating-a-web-application-with-azure-ad-using-datawiza-in-5-mins-5d721dfd5ce9">article</a>, we introduced how to secure an application with Azure AD and Datawiza in 5 minutes using a configuration-based approach rather than coding. In addition, <a href="https://datawiza.com/">Datawiza</a> supports many other IdPs, such as <a href="https://docs.datawiza.com/tutorial/web-app-okta.html">Okta</a>, <a href="https://docs.datawiza.com/tutorial/web-app-auth0.html">Auth0</a>, <a href="https://docs.datawiza.com/tutorial/web-app-keycloak.html">Keycloak</a>, and so on.</p><p>In this tutorial, you will learn how to implement OpenID Connect (OIDC) SSO authentication for a web application with Auth0 and Datawiza. “Application” here refers to Regular Web Applications that perform most of their application logic on the server (e.g., ASP.NET, PHP, or JAVA, Golang, Python). Mobile applications (iOS and Android) and Single Page Applications (e.g., AngularJS, Node.js, or React) are not included.</p><h3>Introduction to the Datawiza Platform</h3><p>The Datawiza platform is a cloud-delivered, SaaS-based access management solution. It includes a data plane and a control plane: Datawiza Access Broker (DAB) and Datawiza Cloud Management Console (DCMC), respectively.</p><p>DAB is a lightweight, container-based access proxy deployed close to your application via the sidecar (agent) or gateway mode. It talks to Auth0 on behalf of your applications, so you don’t need to worry about the integration work. DCMC is a cloud-based management console where you can configure and manage the policies of DABs. Unlike traditional Web Access Management (WAM) solutions (CA Siteminder, Oracle Access Manager, IBM), our SaaS-based design makes the entire platform much easier to access and use.</p><h3>Create an application in Auth0</h3><p>First, we need to create an <a href="https://auth0.com/docs/applications">Auth0 application</a> in the <a href="https://manage.auth0.com/dashboard">Auth0 console</a>. When performing this step, make sure to log in to your account on Auth0. Visit the link <a href="https://auth0.com/">here</a> to create a developer account.</p><p>You can skip this step if you already have an application with the following values: Domain, Client ID, and Client Secret.</p><p>Create an application after you log in to Auth0.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FhOg332kEH7pvkbE" /></figure><p>Enter the application name and choose <strong>Regular Web Applications</strong>, then click <strong>CREATE</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iqEo3BOy_k-iMydh" /></figure><p>Select the <strong>Settings</strong> tab and fill out the form. Follow the steps below:</p><ul><li><strong>Allowed Callback URLs</strong>: e.g., <a href="http://localhost:9772/authorization-code/callback">http://localhost:9772/authorization-code/callback</a></li><li><strong>Allowed Logout URLs</strong>: e.g., <a href="http://localhost:9772/">http://localhost:9772</a></li></ul><p>Use the default settings for the remaining fields</p><p>Then click <strong>SAVE CHANGES.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SbDaxEY2c_3Deg6W" /></figure><p>On the same page, be sure to save a copy of <strong>Domain</strong>, <strong>Client ID,</strong> and <strong>Client Secret</strong>. You will need these values later when establishing the connection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Bsfxy7_a_SaCWlKT" /></figure><p>Choose <strong>Users</strong> under<strong> Users &amp; Roles</strong> Tab and create a test user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gtImSNiTMWDfWQPO" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PU9nAOFsShASDswy" /></figure><p>You have now registered a web application on Auth0. Next, you will create a simple configuration in the DCMC.</p><h3>Simple configurations using Datawiza Cloud Management Console</h3><p>First, log in to the Datawiza Cloud Management Console (DCMC) cloud. If you do not have a DCMC cloud account, you can create one by email from the DCMC login page. Also, we provide social login functionality with Microsoft, GitHub, and Google to simplify logins for you.</p><p>The <strong>Get started</strong> function will guide you through the configuration. After logging in to the DCMC, click on the yellow “Get started” button and follow the steps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4MQtk7UfPoZInSBV" /></figure><p>Enter some basic information, such as the deployment name and provisioning key name:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*l_pA7uPujuCoCmiI" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fHlcHGki3m8P2-yh" /></figure><p>Now <strong>Add an Application</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WZTxxw2X0SjOW9bm" /></figure><p>Configure your application with the following values:</p><ul><li><strong>Platform</strong>: <em>Web</em></li><li><strong>App Name</strong>: <em>Demo App</em></li><li><strong>Public Domain</strong>: <a href="http://localhost:9772/"><em>http://localhost:9772</em></a></li><li><strong>Listen Port</strong>: <em>9772</em></li><li><strong>Upstream Servers</strong>: <a href="http://host.docker.internal:3001/"><em>http://host.docker.internal:3001</em></a></li><li><strong>Default Action</strong>: <em>Allow</em></li></ul><p>Note that <strong>Upstream Servers</strong> is the address of the application for which you want to enable SSO. In this tutorial, we will provide a header-based app running on port 3001.</p><ul><li>If you use Mac or Windows, then set the Upstream Servers to <a href="http://host.docker.internal:3001/"><em>http://host.docker.internal:3001</em></a> (requires Docker 18.03+).</li><li>If you use Linux, use <em>ip addr show docker0</em> to get the docker host IP (e.g., 172.17.0.1) and then set Upstream Servers to <a href="http://172.17.0.1:3001/">http://172.17.0.1:3001</a> (see <a href="https://stackoverflow.com/questions/24319662/from-inside-of-a-docker-container-how-do-i-connect-to-the-localhost-of-the-mach">this</a> for more details).</li></ul><p>Next <strong>Configure the IdP</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FyMGFbM3FjeR8ovU" /></figure><p>Select <strong>OIDC</strong> as the Protocol and <strong>Auth0</strong> as the Identity Provider. Input the <strong>Domain</strong>, <strong>Client ID,</strong> and the <strong>Client Secret</strong> you saved when creating the app in Auth0. Then click <strong>Create</strong>.</p><p>In the last step, we will provide the command lines to pull the DAB image and the docker-compose file to run the DAB.</p><p><em>NOTE: In this tutorial, we use </em><a href="https://docs.docker.com/get-docker/"><em>Docker</em></a><em> and </em><a href="https://docs.docker.com/compose/install/"><em>docker-compose</em></a><em> to deploy the DAB. Please ensure that you have already installed both of them in your environment before running the DAB.</em></p><p>Execute the command lines in steps 1 &amp; 2 and note down the docker-compose file in step 3.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uTcgr4HLQDdPFnR1" /></figure><h3>Run DAB as a sidecar (agent) to your application</h3><p>After finishing the configuration in DCMC, you can run the DAB with the YAML file noted down in the previous step. In this part of the tutorial, we need to add our header-based app to the YAML file for testing purposes. The final docker-compose YAML file should look like this:</p><pre>version: ‘3’<br>services:<br>  datawiza-access-broker:<br>    image: registry.gitlab.com/datawiza/access-broker<br>    container_name: datawiza-access-broker<br>    restart: always<br>    ports:<br>      — “9772:9772”<br>    environment:<br>      PROVISIONING_KEY: #############################<br>      PROVISIONING_SECRET: #############################</pre><pre>  header-based-app:<br>    image: registry.gitlab.com/datawiza/header-based-app<br>    container_name: ab-demo-header-app<br>    restart: always<br>    ports:<br>      — “3001:3001”</pre><p>Now, we can use docker-compose to create and start the DAB:</p><pre>docker-compose -f datawiza-access-broker up -d</pre><p>That’s it. After executing the command above, the header-based app should have SSO enabled with Auth0.</p><p>Now, let’s give it a try.</p><p>Open a browser and type in <a href="http://localhost:9772."><strong>http://localhost:9772</strong>.</a> You should see the Auth0 login page as follows. Use the test user we created in the previous step to log in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*I6Uu_v9uwZ-pF1hS" /></figure><p>After logging in to the Auth0, the header-based app will be shown.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aip3Sbo66Y6fjWkd" /></figure><h3>Summary</h3><p>This tutorial has shown you how to secure a web application with Auth0 using <a href="https://datawiza.com/">Datawiza</a> — in minutes instead of hours or days. Get a free trial by <a href="https://console.datawiza.com/">signing up/in here</a>. Please email us at <a href="/service/mailto:contact@datawiza.com">contact@datawiza.com</a> if you need any help or have any questions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec9db98cc862" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Integrating a web application with Azure AD using Datawiza in 5 mins]]></title>
            <link>https://weiyu-datawiza.medium.com/integrating-a-web-application-with-azure-ad-using-datawiza-in-5-mins-5d721dfd5ce9?source=rss-b99fd5aba412------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d721dfd5ce9</guid>
            <category><![CDATA[identity-aware-proxy]]></category>
            <category><![CDATA[oauth2]]></category>
            <category><![CDATA[one-click-integration]]></category>
            <category><![CDATA[azure-active-directory]]></category>
            <category><![CDATA[datatawiza-access-broker]]></category>
            <dc:creator><![CDATA[Weiyu Fang]]></dc:creator>
            <pubDate>Fri, 11 Jun 2021 07:51:58 GMT</pubDate>
            <atom:updated>2021-06-14T08:53:59.023Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YcsvlMBSaPPjpoZ3R8mwOw.png" /></figure><p>Are you still asking your developers, who are usually not trained as security experts, to integrate your apps with Azure Active Directory (Azure AD)? These are extremely security-sensitive integrations involving both authentication and authorization. And to do this, the developers may need to learn the latest authentication/authorization protocols (OIDC/OAuth or SAML) from scratch. They may need to practice with the Azure AD SDKs for different programming languages, e.g., .Net, Java, and PHP. They may also need to implement similar integrations for many different apps (e.g., HR and Finance) again and again. Such an integration effort could take your organization months or years to finish depending on the number and the complexity of applications.</p><p>You deserve a better solution, and we are building one that will reduce the time required down to hours or days, even minutes.</p><p>In this tutorial, you will learn how to integrate a web application with Azure AD using Datawiza to implement OIDC/OAuth SSO for a web application. “Application” here refers to Regular Web Applications that perform most of their application logic on the server (e.g., ASP.NET, PHP, or JAVA). Mobile applications (iOS and Android) and Single Page Applications (e.g., AngularJS, Node.js, or React) are not included.</p><h3>Introduction to the Datwiza Platform</h3><p>The Datawiza platform is a cloud-delivered, SaaS-based access management solution. It includes a data plane and a control plane: <a href="https://docs.datawiza.com/architecture.html">Datawiza Access Broker (DAB) and Datawiza Cloud Management Console (DCMC)</a>.</p><p><strong>DAB</strong> is a lightweight, container-based access proxy deployed close to your application via the sidecar (agent) or gateway mode. It talks to Azure AD on behalf of your applications so that you don’t need to worry about the integration work. <strong>DCMC</strong> is a cloud-based management console where you can configure and manage the policies of DABs. Such a SaaS-based design makes the whole platform much easier to use.</p><h3>Simple configurations using Datawiza Cloud Management Console</h3><p>Use your <strong>Azure AD Admin Account (this account should have the permission to create an app registration in the Azure AD tenant)</strong> to log in to the <a href="https://console.datawiza.com/">DCMC</a>. Click on the <strong>Get started</strong> button and follow the steps.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*B9RdrJvn3JyAr1x0" /></figure><p>Enter some basic information, such as the deployment name and provisioning key name:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YT77cwavoeayvUv9" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*a9i1VkitBS-tUd57" /></figure><p>For Add Application step:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eVl5fw18luzQ8EZH" /></figure><p>Configure your application with the following values:</p><ul><li>Platform: Web</li><li>App Name: Demo App</li><li>Public Domain: <a href="http://localhost:9772/">http://localhost:9772</a></li><li>Listen Port: 9772</li><li>Upstream Servers: <a href="http://host.docker.internal:3001/">http://host.docker.internal:3001</a></li><li>Default Action: Allow</li></ul><p>Note that <strong>Upstream Servers</strong> is the address of the application for which you want to enable SSO. In this tutorial, we will provide a header-based app running on port 3001.</p><ul><li>If you use Mac or Windows, then set the Upstream Servers to <a href="http://host.docker.internal:3001/">http://host.docker.internal:3001</a> (Docker 18.03+).</li><li>If you use Linux, use <em>ip addr show docker0</em> to get the docker host IP (e.g., 172.17.0.1) and then set Upstream Servers to <a href="http://172.17.0.1:3001/">http://172.17.0.1:3001</a> (see <a href="https://stackoverflow.com/questions/24319662/from-inside-of-a-docker-container-how-do-i-connect-to-the-localhost-of-the-mach">this</a> for more details).</li></ul><p>For Configure IdP step:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oQm1C2iZlGAo2Bpm" /></figure><p>Select the Microsoft Azure Active Directory as the Identity Provider and keep the Automatic Generator option on.</p><p>Our One-Click for Microsoft Azure AD solution simplifies and automates adding applications to the Azure AD environment. It is a convenient way for companies to integrate their apps with Azure AD, and it eliminates many manual application configuration steps, which are often time-consuming and error-prone, and delay the time to value of using Azure AD. It also simplifies operations for administrators with the ability to easily configure the entire environment using a single console, reducing the need to pivot across the Datawiza Console and the Azure Portal.</p><p>Click Create and wait for interaction with Azure AD. All the configurations are now automatically set.</p><p>In the last step, we will give the command lines to pull the DAB image and the docker-compose YAML file to run the DAB.</p><p><em>NOTE: We use </em><a href="https://docs.docker.com/get-docker/"><em>Docker</em></a><em> and </em><a href="https://docs.docker.com/compose/install/"><em>docker-compose</em></a><em> to deploy the DAB. Please ensure that you have already installed both of them in your environment before running the DAB.</em></p><p>Execute the command lines in steps 1 &amp; 2 and note down the docker-compose file in step 3.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pu7IGd2g84gP7YGn" /></figure><h3>Run DAB as a sidecar (agent) to your application</h3><p>After finishing the configuration in DCMC, you can run the DAB with the YAML file noted down in the previous step. In this part of the tutorial, we need to add our header-based app to the YAML file for testing purposes. The docker-compose YAML file should then be like this:</p><pre>version: ‘3’<br>services:<br>  datawiza-access-broker:<br>    image: registry.gitlab.com/datawiza/access-broker<br>    container_name: datawiza-access-broker<br>    restart: always<br>    ports:<br>      — “9772:9772”<br>    environment:<br>      PROVISIONING_KEY: #############################<br>      PROVISIONING_SECRET: #############################</pre><pre>  header-based-app:<br>    image: registry.gitlab.com/datawiza/header-based-app<br>    container_name: ab-demo-header-app<br>    restart: always<br>    ports:<br>      — “3001:3001”</pre><p>Now, we can use docker-compose to create and start the DAB:</p><pre>docker-compose -f datawiza-access-broker up -d</pre><p>That’s it. After executing the command above, the header-based app should have SSO enabled with Azure AD.</p><p>Now, let’s give it a try.</p><p>Open a browser and type in <a href="http://localhost:9772."><strong>http://localhost:9772</strong>.</a> You should see the Azure AD login page as follows. Note that if you are already logged into Azure AD in your browser, you may need to logout to see the login page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5EvIhFWMqnkZfURD" /></figure><p>After logging in to the Azure AD, the header-based app will be shown.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hcy5vHfaLtH7z_8O" /></figure><h3>Summary</h3><p>This tutorial has shown you how to integrate a web application with Azure AD using Datawiza — in minutes instead of hours or days. Get a free trial by <a href="https://console.datawiza.com/">signing up/in here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d721dfd5ce9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>