CognitoIDP: fix REFRESH_TOKEN_AUTH flow in admin_initiate_auth() (#5872)

This commit is contained in:
opavliuk 2023-01-24 16:27:46 +01:00 committed by GitHub
parent 667c40e58a
commit 7786bf3c23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1429,7 +1429,7 @@ class CognitoIdpBackend(BaseBackend):
} }
return self._log_user_in(user_pool, client, username) return self._log_user_in(user_pool, client, username)
elif auth_flow is AuthFlow.REFRESH_TOKEN: elif auth_flow in (AuthFlow.REFRESH_TOKEN, AuthFlow.REFRESH_TOKEN_AUTH):
refresh_token: str = auth_parameters.get("REFRESH_TOKEN") # type: ignore[assignment] refresh_token: str = auth_parameters.get("REFRESH_TOKEN") # type: ignore[assignment]
( (
access_token, access_token,