Exemple #1
0
        public void Should_Discover_OpenID_Providers_Using_URI_Syntax()
        {
            rpid = "rp-discovery-webfinger_acct";

            // given
            string             userid = rpid + "@" + opBaseurl.Host;
            OpenIdRelyingParty rp     = new OpenIdRelyingParty();

            // when
            string issuer = rp.ObtainIssuerFromEmail(userid, opBaseurl.ToString());

            // then
            Assert.AreEqual(issuer.TrimEnd('/'), GetBaseUrl("/").TrimEnd('/'));
        }
Exemple #2
0
        public void Can_Discover_OpenID_Providers_Using_URI_Syntax()
        {
            // given
            rpid   = "rp-discovery-webfinger_acct";
            claims = "normal";
            string userid = rpid + "@rp.certification.openid.net";

            OpenIdRelyingParty rp = new OpenIdRelyingParty();

            // when
            string issuer = rp.ObtainIssuerFromEmail(userid, baseurl.ToString());

            // then
            Assert.AreEqual(issuer.TrimEnd('/'), GetBaseUrl("/").TrimEnd('/'));
        }