CognitoIDP: fix REFRESH_TOKEN_AUTH flow in admin_initiate_auth() (#5872)
This commit is contained in:
parent
667c40e58a
commit
7786bf3c23
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user