Skip to content

Commit

Permalink
preserve backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
janwijbrand committed Sep 28, 2021
1 parent e8eb90f commit ee364d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion authlib/oauth2/rfc7523/assertion.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@

def sign_jwt_bearer_assertion(
key, issuer, audience, subject=None, issued_at=None,
expires_at=None, alg=None, header=None, claims=None, **kwargs):
expires_at=None, claims=None, header=None, **kwargs):

if header is None:
header = {}
alg = kwargs.pop('alg', None)
if alg is not None:
header['alg'] = alg
if 'alg' not in header:
Expand Down

0 comments on commit ee364d8

Please sign in to comment.