public void ProviderTest() {
			var responseMessage = new IndirectSignedResponse(Protocol.V20.Version, this.returnTo);
			responseMessage.ProviderEndpoint = OPUri;
			var response = new PositiveAnonymousResponse(responseMessage);
			Assert.IsNotNull(response.Provider);
			Assert.AreEqual(OPUri, response.Provider.Uri);
			Assert.AreEqual(responseMessage.Version, response.Provider.Version);
		}
Exemplo n.º 2
0
        public void ProviderTest()
        {
            var responseMessage = new IndirectSignedResponse(Protocol.V20.Version, this.returnTo);

            responseMessage.ProviderEndpoint = OPUri;
            var response = new PositiveAnonymousResponse(responseMessage);

            Assert.IsNotNull(response.Provider);
            Assert.AreEqual(OPUri, response.Provider.Uri);
            Assert.AreEqual(responseMessage.Version, response.Provider.Version);
        }
		public void CtorAndProperties() {
			var responseMessage = new IndirectSignedResponse(Protocol.V20.Version, this.returnTo);
			var ext = new ClaimsResponse();
			responseMessage.Extensions.Add(ext);
			var response = new PositiveAnonymousResponse(responseMessage);
			Assert.AreEqual(AuthenticationStatus.ExtensionsOnly, response.Status);
			Assert.AreSame(responseMessage, response.Response);
			Assert.IsNull(response.ClaimedIdentifier);
			Assert.IsNull(response.FriendlyIdentifierForDisplay);
			Assert.IsNull(response.Exception);
			Assert.IsNull(response.Provider);
			Assert.AreSame(ext, response.GetUntrustedExtension<ClaimsResponse>());
		}
Exemplo n.º 4
0
        public void CtorAndProperties()
        {
            var responseMessage = new IndirectSignedResponse(Protocol.V20.Version, this.returnTo);
            var ext             = new ClaimsResponse();

            responseMessage.Extensions.Add(ext);
            var response = new PositiveAnonymousResponse(responseMessage);

            Assert.AreEqual(AuthenticationStatus.ExtensionsOnly, response.Status);
            Assert.AreSame(responseMessage, response.Response);
            Assert.IsNull(response.ClaimedIdentifier);
            Assert.IsNull(response.FriendlyIdentifierForDisplay);
            Assert.IsNull(response.Exception);
            Assert.IsNull(response.Provider);
            Assert.AreSame(ext, response.GetUntrustedExtension <ClaimsResponse>());
        }