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