• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# AuthenticationType类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中AuthenticationType的典型用法代码示例。如果您正苦于以下问题:C# AuthenticationType类的具体用法?C# AuthenticationType怎么用?C# AuthenticationType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



AuthenticationType类属于命名空间,在下文中一共展示了AuthenticationType类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: AccountingRequest

 public AccountingRequest(string nasIpAddress, ServiceType serviceType, string userName,
     AuthenticationType authenticationType, StatusType statusType, uint delayTime, string clientIp, string sessionId, Client client)
     : base(PacketType.AccountingRequest, nasIpAddress, serviceType, userName)
 {
     Packet.Secret = client.Secret;
     Packet.Attributes.Add(new AuthenticationTypeAttribute(authenticationType));
     Packet.Attributes.Add(new StatusTypeAttribute(statusType));
     Packet.Attributes.Add(new IntegerAttribute(AttributeType.AcctDelayTime, delayTime));
     Packet.Attributes.Add(new IpAddressAttribute(AttributeType.FramedIpAddress, clientIp));
     Packet.Attributes.Add(new StringAttribute(AttributeType.AcctSessionId, sessionId));
 }
开发者ID:OlegUA,项目名称:dotnet-radius-client-library,代码行数:11,代码来源:AccountingRequest.cs


示例17: ActivateSessionRequest

 /// <summary>
 /// Initializes a new instance of the ActivateSessionRequest class.
 /// </summary>
 /// <param name="sessionAuthenticationType">Session authentication type.</param>
 /// <param name="maximumPrivilegeLevel">Maximum privilege level for this session.</param>
 /// <param name="sessionChallengeString">Challenge string from Get Session Challenge message.</param>
 /// <param name="initialOutboundSequenceNumber">Initial outbound sequence number.</param>
 internal ActivateSessionRequest(
     AuthenticationType sessionAuthenticationType, 
     PrivilegeLevel maximumPrivilegeLevel,
     byte[] sessionChallengeString,
     uint initialOutboundSequenceNumber)
 {
     this.sessionAuthenticationType = sessionAuthenticationType;
     this.maximumPrivilegeLevel = maximumPrivilegeLevel;
     this.sessionChallengeString = sessionChallengeString;
     this.initialOutboundSequenceNumber = initialOutboundSequenceNumber;
 }
开发者ID:kewencai,项目名称:ChassisManager,代码行数:18,代码来源:ActivateSessionRequest.cs


示例18: SqlServerSettings

        internal SqlServerSettings(string server, AuthenticationType authentication, string adminUser, string adminPassword, string ibnUser, string ibnPassword)
        {
            Server = server;
            Authentication = authentication;
            AdminUser = adminUser;
            AdminPassword = adminPassword;
            PortalUser = ibnUser;
            PortalPassword = ibnPassword;

            AdminConnectionString = BuildConnectionString(authentication, server, "master", adminUser, adminPassword);
        }
开发者ID:0anion0,项目名称:IBN,代码行数:11,代码来源:SqlServerSettings.cs


示例19: BuildConnectionString

        internal static string BuildConnectionString(AuthenticationType authentication, string server, string database, string user, string password)
        {
            string format;

            if (authentication == AuthenticationType.SqlServer)
                format = "Data source={0};Initial catalog={1};User Id={2};Password={3}";
            else
                format = "Data source={0};Initial catalog={1};Integrated Security=SSPI";

            return string.Format(CultureInfo.InvariantCulture, format,
                server, database, user, password);
        }
开发者ID:0anion0,项目名称:IBN,代码行数:12,代码来源:SqlServerSettings.cs


示例20: GetSessionChallengeRequest

        /// <summary>
        /// Initializes a new instance of the GetSessionChallengeRequest class.
        /// </summary>
        /// <param name="authenticationType">Authentication type for challenge.</param>
        /// <param name="userid">Userid or null.</param>
        internal GetSessionChallengeRequest(AuthenticationType authenticationType, string userId)
        {
            this.challengeAuthenticationType = (byte)authenticationType;

            this.UserId = new byte[16];

            if (!string.IsNullOrEmpty(userId))
            {
                for (int i = 0; i < userId.Length; i++)
                {
                    this.UserId[i] = (byte)userId[i];
                }
            }
        }
开发者ID:kewencai,项目名称:ChassisManager,代码行数:19,代码来源:GetSessionChallengeRequest.cs



注:本文中的AuthenticationType类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Authenticator类代码示例发布时间:2022-05-24
下一篇:
C# AuthenticationService类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap