// Copyright © 2020 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
namespace CefSharp.DevTools.Fetch
{
///
/// Authorization challenge for HTTP status code 401 or 407.
///
[System.Runtime.Serialization.DataContractAttribute]
public class AuthChallenge : CefSharp.DevTools.DevToolsDomainEntityBase
{
///
/// Source of the authentication challenge.
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("source"), IsRequired = (false))]
public string Source
{
get;
set;
}
///
/// Origin of the challenger.
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("origin"), IsRequired = (true))]
public string Origin
{
get;
set;
}
///
/// The authentication scheme used, such as basic or digest
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("scheme"), IsRequired = (true))]
public string Scheme
{
get;
set;
}
///
/// The realm of the challenge. May be empty.
///
[System.Runtime.Serialization.DataMemberAttribute(Name = ("realm"), IsRequired = (true))]
public string Realm
{
get;
set;
}
}
}