Skip to content

Commit

Permalink
Merge pull request #2450 from zippy1981/bugifix/2449-client-secret-wa…
Browse files Browse the repository at this point in the history
…rnings

Updated the comments around client secret.
  • Loading branch information
domaindrivendev committed Jul 13, 2022
2 parents 897ffed + f9e09be commit 39604d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Swashbuckle.AspNetCore.SwaggerUI/SwaggerUIOptions.cs
Expand Up @@ -192,6 +192,7 @@ public class OAuthConfigObject
/// <summary>
/// Default clientSecret
/// </summary>
/// <remarks>Setting this exposes the client secrets in inline javascript in the swagger-ui generated html.</remarks>
public string ClientSecret { get; set; } = null;

/// <summary>
Expand Down
Expand Up @@ -236,8 +236,9 @@ public static void OAuthUsername(this SwaggerUIOptions options, string value)
/// </summary>
/// <param name="options"></param>
/// <param name="value"></param>
/// <remarks>Setting this exposes the client secrets in inline javascript in the swagger-ui generated html.</remarks>
public static void OAuthClientSecret(this SwaggerUIOptions options, string value)
{
{
options.OAuthConfigObject.ClientSecret = value;
}

Expand Down

0 comments on commit 39604d9

Please sign in to comment.