Windows Live authentication

Discussion in 'Web Matrix v2 beta [Closed]' started by jeremyh, Jan 25, 2012.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I have setup the WebMatrix 2 StarterSite to use Windows Live authentication (OAuth) to login to my sample site but once I enter the password into windows live it redirects back to my site but the site returns a 404.7 The request filtering module is configured to deny the file extension.

    Module RequestFilteringModule
    Notification BeginRequest
    Handler cshtml-Integrated-4.0
    Error Code 0x00000000
    Requested URL
    http://userXXX.webmatrix2.discounta...ive&code=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

    Can anyone give me any pointers to fix this please?
     
  2. Seems adding

    <system.webServer>
    <security>
    <requestFiltering>
    <fileExtensions>
    <remove fileExtension=".cshtml" />
    <add fileExtension=".cshtml" allowed="true" />
    </fileExtensions>
    </requestFiltering>
    </security>
    </system.webServer>
    into the web.config fixed that 404.7 issue.

    But now getting error System.IO.IOException: Cannot close stream until all bytes are written on
    var result = OAuthWebSecurity.VerifyAuthentication();
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page