<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Wasim Ul Masood</title>
    <description>The latest articles on DEV Community by Wasim Ul Masood (@masoodwasim).</description>
    <link>https://dev.to/masoodwasim</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F901558%2F973f4b91-8b28-4406-abdd-0de427857ada.jpeg</url>
      <title>DEV Community: Wasim Ul Masood</title>
      <link>https://dev.to/masoodwasim</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/masoodwasim"/>
    <language>en</language>
    <item>
      <title>Secure Your Rest APIs with Azure Active Directory</title>
      <dc:creator>Wasim Ul Masood</dc:creator>
      <pubDate>Mon, 01 Aug 2022 15:38:51 +0000</pubDate>
      <link>https://dev.to/masoodwasim/secure-your-rest-apis-with-azure-active-directory-4bk4</link>
      <guid>https://dev.to/masoodwasim/secure-your-rest-apis-with-azure-active-directory-4bk4</guid>
      <description>&lt;h2&gt;
  
  
  Secure Your Rest APIs with Azure Active Directory
&lt;/h2&gt;

&lt;p&gt;ASP.NET Core Web API 3.0 with Azure AD B2 Authentication, Swagger UI.&lt;/p&gt;

&lt;p&gt;A sample test web application built in ASP.NET Core 3.0 to perform such tasks as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Authenticate users with Azure AD B2C( Single Sign In with Email, Facebook &amp;amp; Github)&lt;/li&gt;
&lt;li&gt;Protect Web APIs&lt;/li&gt;
&lt;li&gt;Redeem authorization code&lt;/li&gt;
&lt;li&gt;Call a protected Web API from Web Application&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Configuration
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;"Authentication": {
    "Authentication": {
    "AzureAd": {
      "Instance": "",
      "TenantId": "",
      "ClientId": "",
      "ClientSecret": "",
      "PostLogoutRedirectUri": "https://localhost:44397/",
      "ApiIdentifier": "",
      "B2C": {
        "SignInOrSignUpPolicy": "B2C_1_testsignupandsigninpolicy",
        "EditProfilePolicy": "B2C_1_TestProfileEditPolicy",
        "ResetPasswordPolicy": "B2C_1_password-reset"
      }
    }
  },
  "TestServiceOptions": {
    "BaseUrl": "https://localhost:44327/"
  } 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  ASP.NET CORE Web API Authentication settings
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;"Authentication": {
    "Authentication": {
    "AzureAd": {
      "Instance": "",
      "TenantId": "",
      "Audience": "",
      "SignInOrSignUpPolicy": ""
    }
  }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Swagger UI
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Web API Swagger UI - https://localhost:44327/swagger
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Complete Project:  &lt;a href="https://github.com/masoodwasim/HOATestSample-AzureADB2C.git"&gt;WEB API With Azure AD&lt;/a&gt; &lt;br&gt;
`&lt;/p&gt;

</description>
      <category>api</category>
      <category>azure</category>
      <category>azuread</category>
      <category>restapi</category>
    </item>
  </channel>
</rss>
