34 references to Authentication
System.Data (34)
fx\src\data\System\Data\SqlClient\SqlConnection.cs (7)
476return opt != null ? opt.Authentication == SqlAuthenticationMethod.ActiveDirectoryIntegrated : false; 480return opt != null ? opt.Authentication != SqlAuthenticationMethod.NotSpecified : false; 1522(connectionOptions.Authentication == SqlAuthenticationMethod.SqlPassword || connectionOptions.Authentication == SqlAuthenticationMethod.ActiveDirectoryPassword) && 1525throw SQL.CredentialsNotProvided(connectionOptions.Authentication); 2047if (connectionOptions.IntegratedSecurity || connectionOptions.Authentication == SqlAuthenticationMethod.ActiveDirectoryIntegrated) { 2103if (connectionOptions.IntegratedSecurity || connectionOptions.Authentication == SqlAuthenticationMethod.ActiveDirectoryIntegrated) {
fx\src\data\System\Data\SqlClient\SqlConnectionFactory.cs (3)
68if (opt.IntegratedSecurity || opt.Authentication == SqlAuthenticationMethod.ActiveDirectoryIntegrated) { 161if (opt.Authentication == SqlAuthenticationMethod.ActiveDirectoryInteractive) { 172opt.IntegratedSecurity || opt.Authentication == SqlAuthenticationMethod.ActiveDirectoryIntegrated,
fx\src\data\System\Data\SqlClient\SqlConnectionString.cs (4)
467if (Authentication != SqlAuthenticationMethod.NotSpecified && _integratedSecurity == true) { 471if (Authentication == SqlClient.SqlAuthenticationMethod.ActiveDirectoryIntegrated && (HasUserIdKeyword || HasPasswordKeyword)) { 475if (Authentication == SqlAuthenticationMethod.ActiveDirectoryInteractive && !HasUserIdKeyword) { 479if (Authentication == SqlAuthenticationMethod.ActiveDirectoryInteractive && HasPasswordKeyword) {
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (18)
1285login.authentication = ConnectionOptions.Authentication; 1306|| (ConnectionOptions.Authentication == SqlAuthenticationMethod.ActiveDirectoryIntegrated && !_fedAuthRequired); 1324if (ConnectionOptions.Authentication == SqlAuthenticationMethod.ActiveDirectoryPassword 1325|| ConnectionOptions.Authentication == SqlAuthenticationMethod.ActiveDirectoryInteractive 1326|| (ConnectionOptions.Authentication == SqlAuthenticationMethod.ActiveDirectoryIntegrated && _fedAuthRequired)) { 1332authentication = ConnectionOptions.Authentication, 1669connectionOptions.Authentication == SqlAuthenticationMethod.ActiveDirectoryPassword || 1670connectionOptions.Authentication == SqlAuthenticationMethod.ActiveDirectoryIntegrated || 1671connectionOptions.Authentication == SqlAuthenticationMethod.ActiveDirectoryInteractive; 1973ConnectionOptions.Authentication, 2203|| ConnectionOptions.Authentication == SqlAuthenticationMethod.ActiveDirectoryInteractive 2204|| (ConnectionOptions.Authentication == SqlAuthenticationMethod.ActiveDirectoryIntegrated && _fedAuthRequired), 2376var authProvider = _sqlAuthenticationProviderManager.GetProvider(ConnectionOptions.Authentication); 2377if (authProvider == null) throw SQL.CannotFindAuthProvider(ConnectionOptions.Authentication.ToString()); 2383authenticationMethod: ConnectionOptions.Authentication, 2389switch (ConnectionOptions.Authentication) { 2425throw new InvalidOperationException($"Failed to get a token with unsupported auth method {ConnectionOptions.Authentication}."); 2452sqlErs.Add(new SqlError(0, (byte)0x00, (byte)TdsEnums.MIN_ERROR_CLASS, ConnectionOptions.DataSource, Res.GetString(Res.SQL_ADALFailure, username, ConnectionOptions.Authentication.ToString("G")), ActiveDirectoryAuthentication.AdalGetAccessTokenFunctionName, 0));
fx\src\data\System\Data\SqlClient\TdsParser.cs (2)
1076&& _connHandler.ConnectionOptions.Authentication != SqlAuthenticationMethod.NotSpecified) 7625authentication = _connHandler.ConnectionOptions.Authentication;