113 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.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)