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