Exemplo n.º 1
0
        public void DiscoverYahooOpenIDServer()
        {
            var info   = OpenID.GetIdentityServer("http://www.yahoo.com/".ToUri()).ToArray();
            var server = info.FirstOrDefault();

            server.Should().Not.Be.Null();
            server.Server.ToString().Should().Equal("https://open.login.yahooapis.com/openid/op/auth");
        }
Exemplo n.º 2
0
        public void DiscoverGoogleOpenIDServer()
        {
            var info   = OpenID.GetIdentityServer("https://www.google.com/accounts/o8/id".ToUri()).ToArray();
            var server = info.FirstOrDefault();

            server.Should().Not.Be.Null();
            server.Server.ToString().Should().Equal("https://www.google.com/accounts/o8/ud");
        }