title: Unable to run IdentityServer 4 (.Net core 3.1) with MVC (.Net core MVC 3.1)
body: <p>I am trying to implement IdentityServer4 in .Net core 3.1</p>
  
  <p>I get below message in debug window:</p>
  
  <pre><code>IdentityServer4.Hosting.IdentityServerMiddleware: Information: Invoking IdentityServer endpoint:         IdentityServer4.Endpoints.AuthorizeEndpoint for /connect/authorize
  IdentityServer4.Validation.AuthorizeRequestValidator: Error: Invalid redirect_uri:          https://localhost:44388/signin-oidc
     {
       "ClientId": "testClient",
       "ClientName": "Security.Client",
       "AllowedRedirectUris": [
       "http://localhost:44388/siginin-oidc"
    ],
    "SubjectId": "anonymous",
    "RequestedScopes": "",
     "Raw": {
    "client_id": "testClient",
    "redirect_uri": "https://localhost:44388/signin-oidc",
    "response_type": "code id_token",
    "scope": "openid profile offline_access",
    "response_mode": "form_post",
    "nonce": "637208292641572630.ODk4NzdjNWEtMzNhOC00MmMwLThlNDAtZDc4YzcxZGUxMjM5MjMyMmU5NzUtY2IwNC00Zjg2LThmZDUtNmNlNDM3YjI0ODNk",    "state": "CfDJ8AywpzlcvXBBkeIc2klEDRx1T9KQXlL4fQ9H23M0c-gOdQy9WdjC9EQo0uStq6ANZoCuVLa3e2za0THaInRuEE0OoHYCwORHlJIbv08hV_NSQl94TZTA80t-sxmwQuLyGq5t5kIO4n8e39YUlQKn3A5ybfO9jf-1Ryu1vn2cdZwMxpSfzkoCSq7OsZB_eOfqItU1UlahnUzizJTabGQamFfJKqT1kx5PvxY4NZEldrixJ1oy6RULk5xRhwf6awC5vQf7jds8PU9n7EPUB-yIX-TXXlhLEPPrGyleCiiqQV94",
    "x-client-SKU": "ID_NETSTANDARD2_0",
    "x-client-ver": "5.5.0.0"
       }
      }
  </code></pre>
  
  <p>My UI  is .Net core 3.1 MVC</p>
  
  <p>my IdentityServer url is displayed as <a href="http://localhost:44387/" rel="nofollow noreferrer">http://localhost:44387/</a></p>
  
  <p><a href="https://i.stack.imgur.com/hUIOV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hUIOV.png" alt="enter image description here"></a></p>
  
  <p>on click of Discovery Document link I can see below</p>
  
  <p><a href="https://i.stack.imgur.com/opZmC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/opZmC.png" alt="enter image description here"></a></p>
  
  <p>As of now I added Hardcode a Client and 2 Users:</p>
  
  <p><a href="https://i.stack.imgur.com/eFKQJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eFKQJ.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/Eux91.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Eux91.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/cOBcR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cOBcR.png" alt="enter image description here"></a></p>
  
  <p>Below is my server folder structure. wwwroot, QuickStart, Views folder I directly coped and pasted from url <a href="https://github.com/IdentityServer/IdentityServer4.Quickstart.UI" rel="nofollow noreferrer">https://github.com/IdentityServer/IdentityServer4.Quickstart.UI</a></p>
  
  <p><a href="https://i.stack.imgur.com/mjYAp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mjYAp.png" alt="enter image description here"></a></p>
  
  <p>On my  MVC side :</p>
  
  <p><a href="https://i.stack.imgur.com/1I658.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1I658.png" alt="enter image description here"></a> </p>
  
  <p><a href="https://i.stack.imgur.com/sMAvc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sMAvc.png" alt="enter image description here"></a></p>
  
  <p>On Home page I added a link to call Login action
  <a href="https://i.stack.imgur.com/xnYgc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xnYgc.png" alt="enter image description here"></a></p>
  
  <p>My MVC url is <a href="https://localhost:44388/" rel="nofollow noreferrer">https://localhost:44388/</a>
  Now when I click on Signin it goes to Login action for sure 
  <a href="https://i.stack.imgur.com/3g7g1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3g7g1.png" alt="enter image description here"></a></p>
  
  <p>and then below error page is displayed:
  <a href="https://i.stack.imgur.com/0sRHz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0sRHz.png" alt="enter image description here"></a></p>