• /r/dotnet
  • Abort OpenId Connect Authentication if condition (hd) is not met?

    Just wondering if there’s a way to abort the authentication process if a condition is not met, e.g.: app.UseOpenIdConnectAuthentication(new OpenIdConnectOptions { ///… Events = new OpenIdConnectEvents { OnTokenValidated = e => { //…. if (claim == null) { // Invalidate authentication? } return Task.FromResult(0); }, OnRedirectToIdentityProvider = context => { context.ProtocolMessage.SetParameter(“hd”, “domain.com”); return Task.FromResult(0); } […]

  • /r/dotnet
  • Opinions on 1&1.co.uk?

    I am looking for some cheapish shared Windows hosting for the 4 years I will be at university and so far 1&1.co.uk seems to have the best pricing. see here Has anyone here used 1&1 for an MVC 5 application? Does it work well? Are they any good? Edit: This is for a client area […]

  • /r/dotnet
  • Question about ASP.NET

    So during the development of one of my hobby projects I often stumble upon Error 502.3 Bad Gateway which has a tendency to simply exit debugging right away and not give any helpful information about the exception. How would one go about debugging this exception? EDIT: better question how would one go about even getting […]