當前位置: 首頁>>代碼示例>>C#>>正文


C# AuthenticationType類代碼示例

本文整理匯總了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;
 }
開發者ID:effiPeople,項目名稱:effipeople-csharp,代碼行數:14,代碼來源:EffiPeopleRestClient.cs

示例2: CouchBase

 protected CouchBase(string username, string password, AuthenticationType aT, DbType dbType)
 {
     this.username = username;
     this.password = password;
     this.authType = aT;
     this.dbType = dbType;
 }
開發者ID:kwokhou,項目名稱:LoveSeat,代碼行數:7,代碼來源:CouchBase.cs

示例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;
   }
開發者ID:DarkGraf,項目名稱:STInstaller,代碼行數:7,代碼來源:SqlGetDatabaseFromProcedureWorker.cs

示例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;
        }
開發者ID:jurepurgar,項目名稱:aa-scsm-connector,代碼行數:29,代碼來源:AAHandlerBase.cs

示例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();
   }
開發者ID:DarkGraf,項目名稱:STInstaller,代碼行數:7,代碼來源:SqlDatabaseExistWorker.cs

示例6: AppManager

 public AppManager(string sharePointUrl, AuthenticationType authenticationType, string userName, SecureString password)
 {
     this.sharePointUrl = sharePointUrl;
     this.authenticationType = authenticationType;
     this.userName = userName;
     this.password = password;
 }
開發者ID:LiyeXu,項目名稱:PnP-Sites-Core,代碼行數:7,代碼來源:AppManager.cs

示例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;
   }
開發者ID:DarkGraf,項目名稱:STInstaller,代碼行數:8,代碼來源:SqlWorkerBase.cs

示例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;
 }
開發者ID:OfficeDev,項目名稱:PnP-Transformation,代碼行數:8,代碼來源:RemoteOperation.cs

示例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;
 }
開發者ID:Ricordanza,項目名稱:poderosa,代碼行數:8,代碼來源:Util.cs

示例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;
   }
開發者ID:DarkGraf,項目名稱:STInstaller,代碼行數:9,代碼來源:SqlAttachDatabaseWorker.cs

示例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;
 }
開發者ID:LiyeXu,項目名稱:PnP-Sites-Core,代碼行數:9,代碼來源:RemoteOperation.cs

示例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;
 }
開發者ID:ndubul,項目名稱:Chillas,代碼行數:9,代碼來源:SharepointServerSourceCallbackHandler.cs

示例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;
        }
開發者ID:cfmayer,項目名稱:Bridgeport-TwitterAPI,代碼行數:10,代碼來源:Stream.cs

示例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);
        }
開發者ID:krytht,項目名稱:DotNetReferenceSource,代碼行數:23,代碼來源:SecureEnvironment.cs

示例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;
 }
開發者ID:rjonker1,項目名稱:lightstone-data-platform,代碼行數:10,代碼來源:ApiInitializeCommands.cs


注:本文中的AuthenticationType類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。