markus / ConvertService / ConverterService / IAuthUser / InterfaceAuthUser.cs @ 4d2c8ee1
이력 | 보기 | 이력해설 | 다운로드 (703 Bytes)
1 |
using System; |
---|---|
2 |
using System.Collections.Generic; |
3 |
using System.Linq; |
4 |
using System.Text; |
5 |
using System.Net; |
6 |
using System.Runtime.InteropServices; |
7 |
|
8 |
namespace IAuthUser |
9 |
{ |
10 |
public class AuthCache : CredentialCache |
11 |
{ |
12 |
public AuthCache() |
13 |
{ |
14 |
NetworkCredential nc = new NetworkCredential(@"daelim\esbsystem", "kdm707"); |
15 |
NetworkCredential ncNtlm = new NetworkCredential(@"daelim\esbsystem", "kdm707", "daelim"); |
16 |
this.Add(new Uri("http://www.daelimplant.com"), System.Net.AuthenticationSchemes.Basic.ToString(), nc); |
17 |
this.Add(new Uri("http://www.daelimplant.com"), System.Net.AuthenticationSchemes.Ntlm.ToString(), ncNtlm); |
18 |
} |
19 |
} |
20 |
|
21 |
|
22 |
} |