public CustomSecurityTokenServiceConfiguration()
            : base("STS")
        {
            this.SecurityTokenService = typeof(STS.CustomSecurityTokenService);
            CustomTokenHandler tokenHandler = new CustomTokenHandler();
            this.SecurityTokenHandlers.Add(tokenHandler);

            CustomIssuerTokenResolver customTokenResolver = new CustomToken.CustomIssuerTokenResolver();
            customTokenResolver.AddAudienceKeyPair("http://localhost:19851/", Base64SymmetricKey);
            this.IssuerTokenResolver = customTokenResolver;

            this.DefaultTokenType = CustomTokenHandler.CustomTokenTypeUri;
        }
示例#2
0
        public CustomSecurityTokenServiceConfiguration()
            : base("STS")
        {
            this.SecurityTokenService = typeof(STS.CustomSecurityTokenService);
            CustomTokenHandler tokenHandler = new CustomTokenHandler();

            this.SecurityTokenHandlers.Add(tokenHandler);

            CustomIssuerTokenResolver customTokenResolver = new CustomToken.CustomIssuerTokenResolver();

            customTokenResolver.AddAudienceKeyPair("http://localhost:19851/", Base64SymmetricKey);
            this.IssuerTokenResolver = customTokenResolver;

            this.DefaultTokenType = CustomTokenHandler.CustomTokenTypeUri;
        }