ApiKeyAuthenticationOptions.EmitChallengeHeader property

If true, includes the WWW-Authenticate header in 401 responses.

Default: true.

Set to false to suppress automatic hints to clients.

public bool EmitChallengeHeader { get; set; }

See Also