We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2621476 commit f915ff2Copy full SHA for f915ff2
src/a2a/utils/signing.py
@@ -138,6 +138,7 @@ def signature_verifier(
138
protected_header = json.loads(protected_header_json)
139
kid = protected_header.get('kid')
140
jku = protected_header.get('jku')
141
+ alg = protected_header.get('alg')
142
verification_key = key_provider(kid, jku)
143
144
canonical_payload = canonicalize_agent_card(agent_card)
@@ -149,7 +150,7 @@ def signature_verifier(
149
150
jws.verify(
151
token=token,
152
key=verification_key,
- algorithms=None,
153
+ algorithms=[alg] if alg else None,
154
)
155
# Found a valid signature, exit the loop and function
156
break
0 commit comments