title: Azure AD B2C for API with sign in and sing up with API (not html page)
body: <p>Ok, done I could finally setup my AD B2C with my web API and with Postman. To do so I followed instructions <a href="https://docs.microsoft.com/en-us/aspnet/core/security/authentication/azure-ad-b2c-webapi?view=aspnetcore-2.2." rel="nofollow noreferrer">here</a>.</p>
  
  <p>Now, in Postman when I click "Get New Access Token" in Authorization tab the system redirect me to the HTML sign in/up page from Microsoft and I need to enter my credential. I don't want that. I want to use a predefined login, password because I want to simulate the sign in/up using API only. something where I use the body or header to send my credentials and get the token.</p>
  
  <p>I think I should play with the Grant Type property. Is it correct?</p>
  
  <p>---- EDIT 1 ----</p>
  
  <p>I found <a href="https://docs.microsoft.com/en-us/azure/active-directory-b2c/configure-ropc" rel="nofollow noreferrer">this tutorial</a> and I did this</p>
  
  <p><a href="https://i.stack.imgur.com/QF2WH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QF2WH.png" alt="enter image description here"></a></p>
  
  <p>But it is not working and I don't know what to put in Client Secret. Here is my Postman log</p>
  
  <p><a href="https://i.stack.imgur.com/w4CWM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w4CWM.png" alt="enter image description here"></a></p>
  
  <p>Also I wanted to show this in case this can be relevant:</p>
  
  <p><a href="https://i.stack.imgur.com/b8Wul.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/b8Wul.png" alt="enter image description here"></a></p>