コード例 #1
0
        protected override void DenyAuthorization(ICommunicationContext context)
        {
            base.DenyAuthorization(context);
            var header = new BasicAuthenticationRequiredHeader(realm).ServerResponseHeader;

            context.Response.Headers["WWW-Authenticate"] = header;
        }
コード例 #2
0
 protected override void DenyAuthorization(ICommunicationContext context)
 {
     base.DenyAuthorization(context);
     var header = new BasicAuthenticationRequiredHeader(realm).ServerResponseHeader;
     context.Response.Headers["WWW-Authenticate"] = header;
 }