本文整理汇总了C#中AuthenticationType类的典型用法代码示例。如果您正苦于以下问题:C# AuthenticationType类的具体用法?C# AuthenticationType怎么用?C# AuthenticationType使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AuthenticationType类属于命名空间,在下文中一共展示了AuthenticationType类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: EffiPeopleRestClient
/// <summary>
/// Inicializa un nuevo cliente con la clavede acceso, la clave secreta, el tipo de autenticación y la url base
/// </summary>
/// <param name="accessKey"></param>
/// <param name="secretKey"></param>
/// <param name="authenticationScheme"></param>
/// <param name="baseUrl"></param>
public EffiPeopleRestClient(string accessKey, string secretKey, AuthenticationType authenticationScheme, string baseUrl)
: base(baseUrl)
{
_accessKey = accessKey;
_secretKey = secretKey;
_authenticationScheme = authenticationScheme;
}
示例2: CouchBase
protected CouchBase(string username, string password, AuthenticationType aT, DbType dbType)
{
this.username = username;
this.password = password;
this.authType = aT;
this.dbType = dbType;
}
示例3: SqlGetDatabaseFromProcedureWorker
public SqlGetDatabaseFromProcedureWorker(string server, AuthenticationType authenticationType, string user, string password, string version,
out ISqlGetDatabaseFromProcedureWorkerReturnedData data)
: base(server, "", authenticationType, user, password)
{
data = this.data = new SqlGetDatabaseFromProcedureWorkerReturnedData();
this.version = version;
}
示例4: InitializeClient
protected bool InitializeClient(AuthenticationType authType, EventHandler<AuthorizationCodeRequiredEventArgs> codeRequiredHandler, Guid clientId = default(Guid), string clientSecret = null)
{
var s = GetSettings();
if (!s.IsConfigured) return false;
lock (_lck)
{
if (_aaClient == null || _settings == null || _clientSecret != clientSecret || _clientId != clientId || _settings.LastChanged < s.LastChanged )
{
if (authType == AuthenticationType.Code)
{
clientId = s.UserAppId;
if (clientId == default(Guid))
clientId = Parameters.CLIENT_ID;
}
_aaClient = new AAClient(s.TenantId, s.SubscriptionId, s.ResourceGroupName, s.AutomationAccountName, authType, clientId, clientSecret);
if (authType == AuthenticationType.Code)
_aaClient.AuthorizationCodeRequired += codeRequiredHandler;
_clientSecret = clientSecret;
_settings = s;
_isInitialized = true;
}
}
return true;
}
示例5: SqlDatabaseExistWorker
public SqlDatabaseExistWorker(string server, string checkedDatabase, AuthenticationType authenticationType, string user, string password,
out ISqlDatabaseExistWorkerReturnedData data)
: base(server, "", authenticationType, user, password)
{
this.checkedDatabase = checkedDatabase;
data = this.data = new ReturnedData();
}
示例6: AppManager
public AppManager(string sharePointUrl, AuthenticationType authenticationType, string userName, SecureString password)
{
this.sharePointUrl = sharePointUrl;
this.authenticationType = authenticationType;
this.userName = userName;
this.password = password;
}
示例7: SqlProgressWorker
public SqlProgressWorker(string server, string database, AuthenticationType authenticationType, string user, string password,
EventHandler<SqlWorkerProgressEventArgs> progressEvent = null)
: base(server, database, authenticationType, user, password)
{
this.progressEvent = progressEvent;
initializedDataAreSent = false;
prevCurrentCount = 0;
}
示例8: RemoteOperation
public RemoteOperation(string targetUrl, AuthenticationType authType, string user, string password, string domain = "")
{
this.TargetSiteUrl = targetUrl;
this.AuthType = authType;
this.User = user;
this.Password = password;
this.Domain = domain;
}
示例9: ParseAuthType
public static AuthenticationType ParseAuthType(string value, AuthenticationType defaultvalue) {
if (value == "Password")
return AuthenticationType.Password;
else if (value == "PublicKey")
return AuthenticationType.PublicKey;
else
return defaultvalue;
}
示例10: SqlAttachDatabaseWorker
public SqlAttachDatabaseWorker(string server, string newDatabase, AuthenticationType authenticationType, string user, string password,
string pathToMdf, string pathToLdf, out ISqlAttachDatabaseWorkerReturnedData data)
: base(server, "", authenticationType, user, password)
{
data = this.data = new ReturnedData();
this.newDatabase = newDatabase;
this.pathToMdf = pathToMdf;
this.pathToLdf = pathToLdf;
}
示例11: RemoteOperation
public RemoteOperation(string targetUrl, AuthenticationType authType, string user, SecureString password, string AppInstanceId, string domain = "")
{
TargetSiteUrl = targetUrl;
AuthType = authType;
User = user;
Password = password;
Domain = domain;
this.AppInstanceId = AppInstanceId;
}
示例12: SharepointServerSourceCallbackHandler
public SharepointServerSourceCallbackHandler(IEnvironmentRepository environmentRepository,string server,string userName,string password,AuthenticationType authenticationType)
: base(environmentRepository)
{
VerifyArgument.AreNotNull(new Dictionary<string, object>{{"environmentRepository",environmentRepository}});
_server = server;
_userName = userName;
_password = password;
_authenticationType = authenticationType;
}
示例13: Stream
public Stream(Uri streamUrl, AuthenticationType authenticationType, string httpMethod = "GET", int timeout = -1)
{
tokenSource = new CancellationTokenSource();
ct = tokenSource.Token;
AuthenticationType = authenticationType;
HttpMethod = httpMethod.ToUpper();
_streamUrl = streamUrl;
Timeout = timeout;
}
示例14: Create
/// <summary>
/// This static method activates a user and creates a new instance of SecureEnvironment.
/// The authentication type determines the type of user identity that will be activated.
/// If Permanent Windows activation is requested then the default currently logged on
/// Windows Account identity will be activated. If Temporary Windows activation requested
/// then user will be prompted for Windows Domain credentials through a dialog, and the
/// user identified through those credentials will be activated.
/// In case of Passport authentication, a Passport authentication dialog will always
/// appear regardless of temporary or permanent activation mode. The user that authenticatd
/// through that Passport Authentication dialog will be activated.
/// Regardless of Windows or Passport Authentication, all Temporary created activation will be
/// destroyed when SecureEnvironment instance is Disposed or Finalized.
/// </summary>
public static SecureEnvironment Create(string applicationManifest,
AuthenticationType authentication,
UserActivationMode userActivationMode)
{
SecurityHelper.DemandRightsManagementPermission();
return CriticalCreate(applicationManifest,
authentication,
userActivationMode);
}
示例15: ApiInitializePushCommand
public ApiInitializePushCommand(IEnumerable<IntegrationPackageDto> packages, AuthenticationType authenticationType,
AuditIntegrationCommand audit, ApiConfigurationIdentifier configuration, long configurationId)
{
Packages = packages;
PackageTransactions = new List<PackageTransactionDto>();
AuthenticationType = authenticationType;
Audit = audit;
Configuration = configuration;
ConfigurationId = configurationId;
}