| 23 | |
| 24 | @pytest.mark.skipif(RSAKey is RsaRSAKey, reason="python-rsa backend does not support certificates") |
| 25 | class TestFirebase: |
| 26 | def test_individual_cert(self): |
| 27 | jwt.decode( |
| 28 | firebase_token, |
| 29 | firebase_certs["f4b0a5c73ad85a5da09f0e7f76463631339e0bbf"], |
| 30 | algorithms="RS256", |
| 31 | options={"verify_exp": False, "verify_aud": False}, |
| 32 | ) |
| 33 | |
| 34 | def test_certs_dict(self): |
| 35 | jwt.decode( |
| 36 | firebase_token, firebase_certs, algorithms="RS256", options={"verify_exp": False, "verify_aud": False} |
| 37 | ) |
| 38 | |
| 39 | def test_certs_string(self): |
| 40 | certs = json.dumps(firebase_certs) |
| 41 | jwt.decode(firebase_token, certs, algorithms="RS256", options={"verify_exp": False, "verify_aud": False}) |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…