title: How to fix "AADSTS90102: 'redirect_uri' value must be a valid absolute Uri." error in Microsoft Graph
body: <p>Following this procedure:
  <a href="https://docs.microsoft.com/en-us/graph/auth-v2-user" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/graph/auth-v2-user</a></p>
  
  <p>I'm trying to get a refresh token from this microsoft end point: 
  <a href="https://login.microsoftonline.com/" rel="nofollow noreferrer">https://login.microsoftonline.com/</a>{tenantId}/oauth2/v2.0/authorize</p>
  
  <p>Using PostAsync method from <strong>System.Net.Http.HttpClient</strong> class from nuget (asp.net core 2.2) library, I'm able to get a response back with this error: <strong>"AADSTS90102: 'redirect_uri' value must be a valid absolute Uri."</strong>:
  <a href="https://i.stack.imgur.com/fyVee.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fyVee.png" alt="https://i.imgur.com/LhP5kYf.png"></a></p>
  
  <p>I tried to set some redirect url in the Azure Portal including:
  <code>https://automation.legroupeti.com/Configurations/GetRefreshToken/
  https://automation.legroupeti.com/Configurations/GetRefreshToken
  https://automation.legroupeti.com/
  https://automation.legroupeti.com</code></p>
  
  <p>The post request is the following (Using PostAsync method from <strong>System.Net.Http.HttpClient</strong> class from nuget (asp.net core 2.2)):
  <a href="https://i.stack.imgur.com/Vx1SF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Vx1SF.png" alt="https://i.imgur.com/PI4mo8Y.png"></a></p>
  
  <p>Here are the configured redirect urls form the registred application in the Azure Portal:
  <a href="https://i.stack.imgur.com/tWOCe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tWOCe.png" alt="https://i.imgur.com/aqYDJhn.png"></a></p>
  
  <p>I expect a valid response from the endpoint.
  How do I configure the redirect_uri to be valid?</p>
  
  <p><strong>EDIT 1</strong></p>
  
  <p>I fixed the redirect_uri parameter.</p>