230 references to AuthenticationSchemes
dotnet-svcutil-lib (88)
CodeDomFixup\MethodCreationHelper.cs (1)
1409
new CodeTypeReferenceExpression(typeof(
AuthenticationSchemes
)),
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AuthenticationSchemesHelper.cs (11)
11
public static bool IsSingleton(this
AuthenticationSchemes
v)
16
case
AuthenticationSchemes
.Digest:
17
case
AuthenticationSchemes
.Negotiate:
18
case
AuthenticationSchemes
.Ntlm:
19
case
AuthenticationSchemes
.Basic:
20
case
AuthenticationSchemes
.Anonymous:
30
public static bool IsSet(this
AuthenticationSchemes
thisPtr,
AuthenticationSchemes
authenticationSchemes)
35
public static bool IsNotSet(this
AuthenticationSchemes
thisPtr,
AuthenticationSchemes
authenticationSchemes)
40
internal static string ToString(
AuthenticationSchemes
authScheme)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (21)
37
private
AuthenticationSchemes
_authenticationScheme;
81
bindingElement.AuthenticationScheme !=
AuthenticationSchemes
.Anonymous)
120
public
AuthenticationSchemes
AuthenticationScheme
310
if (_authenticationScheme !=
AuthenticationSchemes
.Anonymous)
318
case
AuthenticationSchemes
.Basic:
330
case
AuthenticationSchemes
.Digest:
336
case
AuthenticationSchemes
.Ntlm:
337
goto case
AuthenticationSchemes
.Negotiate;
338
case
AuthenticationSchemes
.Negotiate:
362
private SecurityTokenProviderContainer CreateAndOpenTokenProvider(TimeSpan timeout,
AuthenticationSchemes
authenticationScheme,
368
case
AuthenticationSchemes
.Anonymous:
370
case
AuthenticationSchemes
.Basic:
373
case
AuthenticationSchemes
.Negotiate:
374
case
AuthenticationSchemes
.Ntlm:
377
case
AuthenticationSchemes
.Digest:
477
return _authenticationScheme !=
AuthenticationSchemes
.Anonymous;
538
internal static bool IsWindowsAuth(
AuthenticationSchemes
authScheme)
542
return authScheme ==
AuthenticationSchemes
.Negotiate ||
543
authScheme ==
AuthenticationSchemes
.Ntlm;
664
internal static bool MapIdentity(EndpointAddress target,
AuthenticationSchemes
authenticationScheme)
1247
return _factory.AuthenticationScheme !=
AuthenticationSchemes
.Anonymous;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelHelpers.cs (7)
51
public static Task<NetworkCredential> GetCredentialAsync(
AuthenticationSchemes
authenticationScheme, SecurityTokenProviderContainer credentialProvider,
58
if (authenticationScheme ==
AuthenticationSchemes
.Anonymous)
68
private static async Task<NetworkCredential> GetCredentialCoreAsync(
AuthenticationSchemes
authenticationScheme,
79
case
AuthenticationSchemes
.Basic:
84
case
AuthenticationSchemes
.Digest:
89
case
AuthenticationSchemes
.Negotiate:
94
case
AuthenticationSchemes
.Ntlm:
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpsTransportBindingElement.cs (3)
61
internal override bool GetSupportsClientAuthenticationImpl(
AuthenticationSchemes
effectiveAuthenticationSchemes)
66
internal override bool GetSupportsClientWindowsIdentityImpl(
AuthenticationSchemes
effectiveAuthenticationSchemes)
122
AuthenticationSchemes
effectiveAuthenticationSchemes = this.AuthenticationScheme;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpTransportBindingElement.cs (15)
21
private
AuthenticationSchemes
_authenticationScheme;
100
public
AuthenticationSchemes
AuthenticationScheme
351
internal virtual bool GetSupportsClientAuthenticationImpl(
AuthenticationSchemes
effectiveAuthenticationSchemes)
353
return effectiveAuthenticationSchemes !=
AuthenticationSchemes
.None &&
354
effectiveAuthenticationSchemes.IsNotSet(
AuthenticationSchemes
.Anonymous);
357
internal virtual bool GetSupportsClientWindowsIdentityImpl(
AuthenticationSchemes
effectiveAuthenticationSchemes)
359
return effectiveAuthenticationSchemes !=
AuthenticationSchemes
.None &&
360
effectiveAuthenticationSchemes.IsNotSet(
AuthenticationSchemes
.Anonymous);
408
AuthenticationSchemes
effectiveAuthenticationSchemes = this.AuthenticationScheme;
412
effectiveAuthenticationSchemes ==
AuthenticationSchemes
.Negotiate,
477
if (_authenticationScheme ==
AuthenticationSchemes
.None)
511
this.AuthenticationScheme =
AuthenticationSchemes
.Basic;
514
this.AuthenticationScheme =
AuthenticationSchemes
.Digest;
517
this.AuthenticationScheme =
AuthenticationSchemes
.Negotiate;
520
this.AuthenticationScheme =
AuthenticationSchemes
.Ntlm;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportDefaults.cs (2)
259
public const
AuthenticationSchemes
AuthenticationScheme =
AuthenticationSchemes
.Anonymous;
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportSecurityHelpers.cs (3)
147
SecurityTokenManager tokenManager, EndpointAddress target, Uri via, string transportScheme,
AuthenticationSchemes
authenticationScheme, ChannelParameterCollection channelParameters)
185
string transportScheme,
AuthenticationSchemes
authenticationScheme, ChannelParameterCollection channelParameters)
261
SecurityTokenManager tokenManager, EndpointAddress target, Uri via, string transportScheme,
AuthenticationSchemes
authenticationScheme,
FrameworkFork\System.ServiceModel\System\ServiceModel\HttpClientCredentialType.cs (14)
34
internal static
AuthenticationSchemes
MapToAuthenticationScheme(HttpClientCredentialType clientCredentialType)
36
AuthenticationSchemes
result;
42
result =
AuthenticationSchemes
.Anonymous;
45
result =
AuthenticationSchemes
.Basic;
48
result =
AuthenticationSchemes
.Digest;
51
result =
AuthenticationSchemes
.Ntlm;
54
result =
AuthenticationSchemes
.Negotiate;
57
result =
AuthenticationSchemes
.None;
66
internal static HttpClientCredentialType MapToClientCredentialType(
AuthenticationSchemes
authenticationSchemes)
71
case
AuthenticationSchemes
.Anonymous:
74
case
AuthenticationSchemes
.Basic:
77
case
AuthenticationSchemes
.Digest:
80
case
AuthenticationSchemes
.Ntlm:
83
case
AuthenticationSchemes
.Negotiate:
FrameworkFork\System.ServiceModel\System\ServiceModel\HttpTransportSecurity.cs (2)
90
http.AuthenticationScheme =
AuthenticationSchemes
.Anonymous;
99
return http.AuthenticationScheme ==
AuthenticationSchemes
.Anonymous && http.Realm == DefaultRealm;
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\ClientCredentialsSecurityTokenManager.cs (3)
63
AuthenticationSchemes
authScheme = (
AuthenticationSchemes
)requirement.Properties[ServiceModelSecurityTokenRequirement.HttpAuthenticationSchemeProperty];
70
return (authScheme ==
AuthenticationSchemes
.Digest);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityPolicy12.cs (6)
58
httpsBinding.AuthenticationScheme ==
AuthenticationSchemes
.Basic ||
59
httpsBinding.AuthenticationScheme ==
AuthenticationSchemes
.Digest)
66
if (httpsBinding.AuthenticationScheme ==
AuthenticationSchemes
.Basic)
70
else if (httpsBinding.AuthenticationScheme ==
AuthenticationSchemes
.Digest)
113
httpsBinding.AuthenticationScheme =
AuthenticationSchemes
.Basic;
117
httpsBinding.AuthenticationScheme =
AuthenticationSchemes
.Digest;
netstandard (1)
netstandard.cs (1)
1064
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.
AuthenticationSchemes
))]
Security.TransportSecurity.IntegrationTests (2)
Http\ClientCredentialTypeTests.4.1.0.cs (1)
160
htbe.AuthenticationScheme = System.Net.
AuthenticationSchemes
.IntegratedWindowsAuthentication;
Https\ClientCredentialTypeTests.4.1.0.cs (1)
250
htbe.AuthenticationScheme = System.Net.
AuthenticationSchemes
.IntegratedWindowsAuthentication;
System (1)
src\libraries\shims\System\ref\System.cs (1)
591
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.
AuthenticationSchemes
))]
System.Net.HttpListener (15)
System\Net\AuthenticationSchemeSelector.cs (1)
6
public delegate
AuthenticationSchemes
AuthenticationSchemeSelector(HttpListenerRequest httpRequest);
System\Net\HttpListener.cs (3)
27
private
AuthenticationSchemes
_authenticationScheme =
AuthenticationSchemes
.Anonymous;
70
public
AuthenticationSchemes
AuthenticationSchemes
System\Net\HttpListenerContext.cs (1)
21
internal
AuthenticationSchemes
AuthenticationSchemes { get; set; }
System\Net\Managed\HttpListener.Managed.cs (1)
334
internal
AuthenticationSchemes
SelectAuthenticationScheme(HttpListenerContext context)
System\Net\Managed\HttpListenerContext.Managed.cs (2)
33
internal void ParseAuthentication(
AuthenticationSchemes
expectedSchemes)
35
if (expectedSchemes ==
AuthenticationSchemes
.Anonymous)
System\Net\Managed\ListenerAsyncResult.Managed.cs (7)
122
context.AuthenticationSchemes =
AuthenticationSchemes
.Anonymous;
131
if (context.AuthenticationSchemes !=
AuthenticationSchemes
.None &&
132
(context.AuthenticationSchemes &
AuthenticationSchemes
.Anonymous) !=
AuthenticationSchemes
.Anonymous &&
133
(context.AuthenticationSchemes &
AuthenticationSchemes
.Basic) !=
AuthenticationSchemes
.Basic)
138
else if (context.AuthenticationSchemes ==
AuthenticationSchemes
.Basic)
System.ServiceModel.Http (99)
System\ServiceModel\Channels\ClientWebSocketTransportDuplexSessionChannel.cs (4)
208
if (_channelFactory.AuthenticationScheme !=
AuthenticationSchemes
.Anonymous)
218
if (_channelFactory.AuthenticationScheme ==
AuthenticationSchemes
.IntegratedWindowsAuthentication)
220
credentials.Add(credentialCacheUriPrefix, AuthenticationSchemesHelper.ToString(
AuthenticationSchemes
.Negotiate),
222
credentials.Add(credentialCacheUriPrefix, AuthenticationSchemesHelper.ToString(
AuthenticationSchemes
.Ntlm),
System\ServiceModel\Channels\HttpChannelFactory.cs (37)
74
bindingElement.AuthenticationScheme !=
AuthenticationSchemes
.Anonymous)
87
if (!bindingElement.AuthenticationScheme.IsSingleton() && bindingElement.AuthenticationScheme !=
AuthenticationSchemes
.IntegratedWindowsAuthentication)
110
if (bindingElement.ProxyAuthenticationScheme ==
AuthenticationSchemes
.Anonymous)
138
public
AuthenticationSchemes
AuthenticationScheme { get; }
196
return AuthenticationScheme !=
AuthenticationSchemes
.Anonymous;
308
if (AuthenticationScheme !=
AuthenticationSchemes
.Anonymous)
323
if (AuthenticationScheme ==
AuthenticationSchemes
.IntegratedWindowsAuthentication)
325
credentials.Add(credentialCacheUriPrefix, AuthenticationSchemesHelper.ToString(
AuthenticationSchemes
.Negotiate),
327
credentials.Add(credentialCacheUriPrefix, AuthenticationSchemesHelper.ToString(
AuthenticationSchemes
.Ntlm),
391
if (AuthenticationScheme !=
AuthenticationSchemes
.Anonymous)
399
case
AuthenticationSchemes
.Basic:
412
case
AuthenticationSchemes
.Digest:
418
case
AuthenticationSchemes
.Ntlm:
419
case
AuthenticationSchemes
.IntegratedWindowsAuthentication:
420
case
AuthenticationSchemes
.Negotiate:
444
private async Task<SecurityTokenProviderContainer> CreateAndOpenTokenProviderAsync(TimeSpan timeout,
AuthenticationSchemes
authenticationScheme,
450
case
AuthenticationSchemes
.Anonymous:
452
case
AuthenticationSchemes
.Basic:
455
case
AuthenticationSchemes
.Negotiate:
456
case
AuthenticationSchemes
.Ntlm:
457
case
AuthenticationSchemes
.IntegratedWindowsAuthentication:
460
case
AuthenticationSchemes
.Digest:
560
if (AuthenticationScheme !=
AuthenticationSchemes
.Anonymous)
564
if (ProxyFactory != null && ProxyFactory.AuthenticationScheme !=
AuthenticationSchemes
.Anonymous)
633
internal static bool IsWindowsAuth(
AuthenticationSchemes
authScheme)
635
Fx.Assert(authScheme.IsSingleton() || authScheme ==
AuthenticationSchemes
.IntegratedWindowsAuthentication, "authenticationScheme used in an Http(s)ChannelFactory must be a singleton value.");
637
return authScheme ==
AuthenticationSchemes
.Negotiate ||
638
authScheme ==
AuthenticationSchemes
.Ntlm ||
639
authScheme ==
AuthenticationSchemes
.IntegratedWindowsAuthentication;
772
internal static bool MapIdentity(EndpointAddress target,
AuthenticationSchemes
authenticationScheme)
1367
public WebProxyFactory(Uri address, bool bypassOnLocal,
AuthenticationSchemes
authenticationScheme)
1372
if (!authenticationScheme.IsSingleton() && authenticationScheme !=
AuthenticationSchemes
.IntegratedWindowsAuthentication)
1381
internal
AuthenticationSchemes
AuthenticationScheme { get; }
1387
if (AuthenticationScheme !=
AuthenticationSchemes
.Anonymous)
1410
if (AuthenticationScheme ==
AuthenticationSchemes
.IntegratedWindowsAuthentication)
1412
credentials.Add(_address, AuthenticationSchemesHelper.ToString(
AuthenticationSchemes
.Negotiate),
1414
credentials.Add(_address, AuthenticationSchemesHelper.ToString(
AuthenticationSchemes
.Ntlm),
System\ServiceModel\Channels\HttpChannelHelpers.cs (8)
59
AuthenticationSchemes
authenticationScheme, SecurityTokenProviderContainer credentialProvider,
62
if (authenticationScheme ==
AuthenticationSchemes
.Anonymous)
73
AuthenticationSchemes
authenticationScheme, SecurityTokenProviderContainer credentialProvider, TimeSpan timeout)
77
case
AuthenticationSchemes
.Basic:
81
case
AuthenticationSchemes
.Digest:
84
case
AuthenticationSchemes
.Negotiate:
87
case
AuthenticationSchemes
.Ntlm:
88
case
AuthenticationSchemes
.IntegratedWindowsAuthentication: // IWA could use NTLM
System\ServiceModel\Channels\HttpsTransportBindingElement.cs (3)
48
internal override bool GetSupportsClientAuthenticationImpl(
AuthenticationSchemes
effectiveAuthenticationSchemes)
53
internal override bool GetSupportsClientWindowsIdentityImpl(
AuthenticationSchemes
effectiveAuthenticationSchemes)
100
AuthenticationSchemes
effectiveAuthenticationSchemes = AuthenticationScheme;
System\ServiceModel\Channels\HttpTransportBindingElement.cs (13)
23
private
AuthenticationSchemes
_proxyAuthenticationScheme;
73
public
AuthenticationSchemes
AuthenticationScheme { get; set; }
164
public
AuthenticationSchemes
ProxyAuthenticationScheme
213
internal virtual bool GetSupportsClientAuthenticationImpl(
AuthenticationSchemes
effectiveAuthenticationSchemes)
215
return effectiveAuthenticationSchemes !=
AuthenticationSchemes
.None &&
216
effectiveAuthenticationSchemes.IsNotSet(
AuthenticationSchemes
.Anonymous);
219
internal virtual bool GetSupportsClientWindowsIdentityImpl(
AuthenticationSchemes
effectiveAuthenticationSchemes)
221
return effectiveAuthenticationSchemes !=
AuthenticationSchemes
.None &&
222
effectiveAuthenticationSchemes.IsNotSet(
AuthenticationSchemes
.Anonymous);
261
AuthenticationSchemes
effectiveAuthenticationSchemes = AuthenticationScheme;
265
effectiveAuthenticationSchemes ==
AuthenticationSchemes
.Negotiate,
340
if (AuthenticationScheme ==
AuthenticationSchemes
.None)
345
else if (!AuthenticationScheme.IsSingleton() && AuthenticationScheme !=
AuthenticationSchemes
.IntegratedWindowsAuthentication)
System\ServiceModel\Channels\HttpTransportDefaults.cs (4)
13
internal const
AuthenticationSchemes
AuthenticationScheme =
AuthenticationSchemes
.Anonymous;
19
internal const
AuthenticationSchemes
ProxyAuthenticationScheme =
AuthenticationSchemes
.Anonymous;
System\ServiceModel\HttpClientCredentialType.cs (15)
35
internal static
AuthenticationSchemes
MapToAuthenticationScheme(HttpClientCredentialType clientCredentialType)
37
AuthenticationSchemes
result;
43
result =
AuthenticationSchemes
.Anonymous;
46
result =
AuthenticationSchemes
.Basic;
49
result =
AuthenticationSchemes
.Digest;
52
result =
AuthenticationSchemes
.Ntlm;
55
result =
AuthenticationSchemes
.Negotiate;
58
result =
AuthenticationSchemes
.None;
67
internal static HttpClientCredentialType MapToClientCredentialType(
AuthenticationSchemes
authenticationSchemes)
72
case
AuthenticationSchemes
.Anonymous:
75
case
AuthenticationSchemes
.Basic:
78
case
AuthenticationSchemes
.Digest:
81
case
AuthenticationSchemes
.Ntlm:
84
case
AuthenticationSchemes
.Negotiate:
85
case
AuthenticationSchemes
.IntegratedWindowsAuthentication:
System\ServiceModel\HttpProxyCredentialType.cs (13)
30
internal static
AuthenticationSchemes
MapToAuthenticationScheme(HttpProxyCredentialType proxyCredentialType)
32
AuthenticationSchemes
result;
36
result =
AuthenticationSchemes
.Anonymous;
39
result =
AuthenticationSchemes
.Basic;
42
result =
AuthenticationSchemes
.Digest;
45
result =
AuthenticationSchemes
.Ntlm;
48
result =
AuthenticationSchemes
.Negotiate;
57
internal static HttpProxyCredentialType MapToProxyCredentialType(
AuthenticationSchemes
authenticationSchemes)
62
case
AuthenticationSchemes
.Anonymous:
65
case
AuthenticationSchemes
.Basic:
68
case
AuthenticationSchemes
.Digest:
71
case
AuthenticationSchemes
.Ntlm:
74
case
AuthenticationSchemes
.Negotiate:
System\ServiceModel\HttpTransportSecurity.cs (2)
102
http.AuthenticationScheme =
AuthenticationSchemes
.Anonymous;
110
return http.AuthenticationScheme ==
AuthenticationSchemes
.Anonymous;
System.ServiceModel.Http.Tests (6)
ServiceModel\BasicHttpBindingTest.cs (6)
318
[InlineData(HttpProxyCredentialType.Basic,
AuthenticationSchemes
.Basic)]
319
[InlineData(HttpProxyCredentialType.Digest,
AuthenticationSchemes
.Digest)]
320
[InlineData(HttpProxyCredentialType.None,
AuthenticationSchemes
.Anonymous)]
321
[InlineData(HttpProxyCredentialType.Ntlm,
AuthenticationSchemes
.Ntlm)]
322
[InlineData(HttpProxyCredentialType.Windows,
AuthenticationSchemes
.Negotiate)]
323
public static void ProxyCredentialType_Propagates_To_TransportBindingElement(HttpProxyCredentialType credentialType,
AuthenticationSchemes
mappedAuthScheme)
System.ServiceModel.Primitives (18)
System\ServiceModel\Channels\AuthenticationSchemesHelper.cs (11)
12
public static bool IsSingleton(this
AuthenticationSchemes
v)
17
case
AuthenticationSchemes
.Digest:
18
case
AuthenticationSchemes
.Negotiate:
19
case
AuthenticationSchemes
.Ntlm:
20
case
AuthenticationSchemes
.Basic:
21
case
AuthenticationSchemes
.Anonymous:
31
public static bool IsSet(this
AuthenticationSchemes
thisPtr,
AuthenticationSchemes
authenticationSchemes)
36
public static bool IsNotSet(this
AuthenticationSchemes
thisPtr,
AuthenticationSchemes
authenticationSchemes)
41
internal static string ToString(
AuthenticationSchemes
authScheme)
System\ServiceModel\Channels\TransportSecurityHelpers.cs (3)
77
SecurityTokenManager tokenManager, EndpointAddress target, Uri via, string transportScheme,
AuthenticationSchemes
authenticationScheme, ChannelParameterCollection channelParameters)
95
string transportScheme,
AuthenticationSchemes
authenticationScheme, ChannelParameterCollection channelParameters)
171
SecurityTokenManager tokenManager, EndpointAddress target, Uri via, string transportScheme,
AuthenticationSchemes
authenticationScheme,
System\ServiceModel\Security\ClientCredentialsSecurityTokenManager.cs (4)
53
AuthenticationSchemes
authScheme = (
AuthenticationSchemes
)requirement.Properties[ServiceModelSecurityTokenRequirement.HttpAuthenticationSchemeProperty];
55
if (!authScheme.IsSingleton() && authScheme !=
AuthenticationSchemes
.IntegratedWindowsAuthentication)
60
return (authScheme ==
AuthenticationSchemes
.Digest);