Skip to content

Commit

Permalink
Merge branch 'upstream-master' into oidc-token-always-includes-id-token
Browse files Browse the repository at this point in the history
  • Loading branch information
Danny Guinther committed Apr 6, 2023
2 parents 365fb13 + c1f3a87 commit da3ef5a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 18 deletions.
2 changes: 1 addition & 1 deletion aioauth/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ async def create_authorization_code(
code_challenge_method: Optional[CodeChallengeMethod],
code_challenge: Optional[str],
code: str,
nonce: Optional[str],
**kwargs,
) -> TAuthorizationCode:
"""Generates an authorization token and stores it in the database.
Expand Down
4 changes: 0 additions & 4 deletions pytest.ini

This file was deleted.

1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@

require_dev = [
"async-asgi-testclient==1.4.8",
"backports.cached-property==1.0.2",
"pre-commit==2.16.0",
"pytest==6.2.5",
"pytest-asyncio==0.16.0",
Expand Down
3 changes: 3 additions & 0 deletions tests/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ async def create_authorization_code(
code_challenge_method: Optional[CodeChallengeMethod],
code_challenge: Optional[str],
code: str,
**kwargs,
):
nonce = kwargs.get("nonce")
authorization_code = AuthorizationCode(
code=code,
client_id=client_id,
Expand All @@ -135,6 +137,7 @@ async def create_authorization_code(
code_challenge_method=code_challenge_method,
code_challenge=code_challenge,
expires_in=request.settings.AUTHORIZATION_CODE_EXPIRES_IN,
nonce=nonce,
)
self.authorization_codes.append(authorization_code)

Expand Down
13 changes: 0 additions & 13 deletions tests/models.py

This file was deleted.

0 comments on commit da3ef5a

Please sign in to comment.