Skip to content

Commit

Permalink
Merge pull request #61 from marcominerva/develop
Browse files Browse the repository at this point in the history
Variable normalization
  • Loading branch information
marcominerva authored Nov 30, 2022
2 parents bbd7eac + 18b3073 commit 4c323c1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Authentication can be totally configured adding an _Authentication_ section in t
// Otherwise, you need to register an IApiKeyValidator implementation that will be used
// to validate the API Key.
//"ApiKeyValue": "f1I7S5GXa4wQDgLQWgz0",
"DefaultUserName": "ApiUser" // Required ApiKeyValue is used
"UserName": "ApiUser" // Required if ApiKeyValue is used
},
"Basic": {
"SchemeName": "Basic", // Default: Basic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ public class ApiKeySettings : AuthenticationSchemeOptions
/// <summary>
/// Gets or sets a fixed value to compare the API key against. If you need to perform custom checks to validate the API key, you should leave this value to <see langword="null"/> and register an <see cref="IApiKeyValidator"/> service.
/// </summary>
/// <seealso cref="DefaultUserName"/>
/// <seealso cref="UserName"/>
/// <seealso cref="IApiKeyValidator"/>
public string? ApiKeyValue { get; set; }

/// <summary>
/// Gets or sets the user name of to be used if the <see cref="ApiKeyValue"/> property is set.
/// </summary>
/// <seealso cref="ApiKeyValue"/>
public string? DefaultUserName { get; set; }
public string? UserName { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>
<RootNamespace>SimpleAuthentication</RootNamespace>
<DocumentationFile>SimpleAuthentication.Abstractions.xml</DocumentationFile>
<Authors>Marco Minerva</Authors>
Expand Down

0 comments on commit 4c323c1

Please sign in to comment.