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; }
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; }