2.1.0

Rating:        Based on 5 ratings
Reviewed:  1 review
Downloads: 0
Change Set: c726b87e90c0567
Released: Jan 21, 2014
Updated: Jan 21, 2014 by
Dev status: Stable Help Icon

Available Downloads

There are no downloads associated with this release.

Release Notes

The 2.1.0 release includes support for Google OAuth2 authentication and a static file server.

Google OAuth

Rather than introduce another middleware, the Google OAuth2 service can be accessed using the existing Google authentication middleware with the new GoogleOAuth2AuthenticationOptions class as follows:

app.UseGoogleAuthentication(new GoogleOAuth2AuthenticationOptions()
{
    ClientId = “999foo999.apps.googleusercontent.com",
    ClientSecret = “shhhhhhhhhh"
});

Static file server

The Microsoft.Owin.StaticFiles package provides both fine and course-grained control over setting up static file-handling functionality. For example, the following sets up a static file server that listens on http://host/p and maps that path to the ‘public’ sub-folder of the Web application project. The setup code additionally enables directory browsing.

public void Configuration(IAppBuilder app)
{
    app.UseFileServer(new FileServerOptions()
    {
        FileSystem = new PhysicalFileSystem("public"),
        RequestPath = new PathString("/p"),
        EnableDefaultFiles = true,
        EnableDirectoryBrowsing = true
    });
}


More samples for both of these can be found at http://aspnet.codeplex.com

Reviews for this release

     
very good!
by qq0827 on Apr 24, 2014 at 7:51 AM