Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated the comments around client secret. #2450

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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