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