Skip to content

Commit

Permalink
Updated the comments around client secret.
Browse files Browse the repository at this point in the history
  • Loading branch information
zippy1981 committed Jun 26, 2022
1 parent 23fe15d commit f9e09be
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 f9e09be

Please sign in to comment.