forked from NancyFx/Nancy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into NancyFx#1755-FormsAuthentication
- Loading branch information
Showing
248 changed files
with
2,149 additions
and
1,133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,3 +25,5 @@ _[Rr]e[Ss]harper.*/ | |
src/_NCrunch_Nancy/ | ||
Thumbs.db | ||
.idea | ||
*.GhostDoc.xml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
The Nancy logo is copyright ©2011 by Andreas Håkansson and Steven Robbings. Please consult the usage guidelines in the Nancy.Portfolio repository (https://github.com/NancyFx/Nancy.Portfolio) for information on how it may be used. | ||
The Nancy logo is copyright ©2011 by Andreas Håkansson and Steven Robbins. Please consult the usage guidelines in the Nancy.Portfolio repository (https://github.com/NancyFx/Nancy.Portfolio) for information on how it may be used. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 28 additions & 28 deletions
56
src/Nancy.Authentication.Basic/BasicAuthenticationConfiguration.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
namespace Nancy.Authentication.Basic | ||
{ | ||
using Nancy.Bootstrapper; | ||
|
||
/// <summary> | ||
/// Some simple helpers give some nice authentication syntax in the modules. | ||
/// </summary> | ||
public static class BasicHttpExtensions | ||
{ | ||
/// <summary> | ||
/// Module requires basic authentication | ||
/// </summary> | ||
/// <param name="module">Module to enable</param> | ||
/// <param name="configuration">Basic authentication configuration</param> | ||
public static void EnableBasicAuthentication(this INancyModule module, BasicAuthenticationConfiguration configuration) | ||
{ | ||
BasicAuthentication.Enable(module, configuration); | ||
} | ||
/// Some simple helpers give some nice authentication syntax in the modules. | ||
/// </summary> | ||
public static class BasicHttpExtensions | ||
{ | ||
/// <summary> | ||
/// Module requires basic authentication | ||
/// </summary> | ||
/// <param name="module">Module to enable</param> | ||
/// <param name="configuration">Basic authentication configuration</param> | ||
public static void EnableBasicAuthentication(this INancyModule module, BasicAuthenticationConfiguration configuration) | ||
{ | ||
BasicAuthentication.Enable(module, configuration); | ||
} | ||
|
||
/// <summary> | ||
/// Module requires basic authentication | ||
/// </summary> | ||
/// <param name="pipeline">Bootstrapper to enable</param> | ||
/// <param name="configuration">Basic authentication configuration</param> | ||
public static void EnableBasicAuthentication(this IPipelines pipeline, BasicAuthenticationConfiguration configuration) | ||
{ | ||
BasicAuthentication.Enable(pipeline, configuration); | ||
} | ||
} | ||
/// <summary> | ||
/// Module requires basic authentication | ||
/// </summary> | ||
/// <param name="pipeline">Bootstrapper to enable</param> | ||
/// <param name="configuration">Basic authentication configuration</param> | ||
public static void EnableBasicAuthentication(this IPipelines pipeline, BasicAuthenticationConfiguration configuration) | ||
{ | ||
BasicAuthentication.Enable(pipeline, configuration); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.