public async Task IdToken(TestConfig config)
        {
            var tokenBuilder = JwtTestUtils.IdTokenBuilder();
            var idToken      = await tokenBuilder.CreateTokenAsync();

            var auth = config.CreateAuth();

            var exception = await Assert.ThrowsAsync <FirebaseAuthException>(
                async() => await auth.VerifySessionCookieAsync(idToken));

            var expectedMessage = "Firebase session cookie has incorrect issuer (iss) claim.";

            this.CheckException(exception, expectedMessage);
        }
Esempio n. 2
0
 private TestConfig(string tenantId = null)
 {
     this.tokenBuilder = JwtTestUtils.IdTokenBuilder(tenantId);
     this.authBuilder  = JwtTestUtils.AuthBuilderForTokenVerification(tenantId);
 }