public DefaultClaimsServiceTests() { _client = new Client { ClientId = "client", Claims = { new ClientClaim("some_claim", "some_claim_value") } }; _user = new IdentityServerUser("bob") { IdentityProvider = "idp", AuthenticationMethods = { OidcConstants.AuthenticationMethods.Password }, AuthenticationTime = new System.DateTime(2000, 1, 1), AdditionalClaims = { new Claim("foo", "foo1"), new Claim("foo", "foo2"), new Claim("bar", "bar1"), new Claim("bar", "bar2"), new Claim(JwtClaimTypes.AuthenticationContextClassReference, "acr1") } }.CreatePrincipal(); _subject = new DefaultClaimsService(_mockMockProfileService, TestLogger.Create <DefaultClaimsService>()); _validatedRequest = new ValidatedRequest(); _validatedRequest.SetClient(_client); }
public DefaultClaimsServiceTests() { _client = new Client { ClientId = "client", Claims = { new Claim("some_claim", "some_claim_value") } }; _user = IdentityServerPrincipal.Create("bob", "bob", new Claim[] { new Claim("foo", "foo1"), new Claim("foo", "foo2"), new Claim("bar", "bar1"), new Claim("bar", "bar2"), new Claim(JwtClaimTypes.AuthenticationContextClassReference, "acr1") }); _subject = new DefaultClaimsService(_mockMockProfileService, TestLogger.Create <DefaultClaimsService>()); _validatedRequest = new ValidatedRequest(); _validatedRequest.SetClient(_client); }