Пример #1
0
        public override SecurityTokenManager CreateSecurityTokenManager()
        {
            MsTokenSerializerSettings settings = new MsTokenSerializerSettings
            {
                SecurityVersion = _securityVersion
            };

            if (!string.IsNullOrEmpty(TokenNamespace)) settings.TokenNamespace = TokenNamespace;
            if (!string.IsNullOrEmpty(TokenElementNamespace)) settings.TokenElementNamespace = TokenElementNamespace;
            if (!string.IsNullOrEmpty(CreatedDate)) settings.CreatedDate = CreatedDate;

            return new MsSecurityTokenManager(this);
        }
Пример #2
0
 public MsTokenSerializer(MsTokenSerializerSettings settings)
     : base(settings.SecurityVersion)
 {
     _settings = settings;
 }
 public MsSecurityTokenManager(MsCredentials cred)
     : base(cred)
 {
     CustomTokenSerializerSettings = new MsTokenSerializerSettings();
 }