Please clarify whether the ordering of keys in the secrets.keys array is of any significance.
The JWK spec assumes by default no significance of ordering, but allows for it. The MAS doc comments of the JsonWebKeySet
type are conflicting, with find_key
returning “the best key given the constraints”, but signing_key_for_algorithm
returning “a key for the given algorithm”.