CognitoIDP: fixed initiate_auth when refresing token (#5453)
This commit is contained in:
parent
e76ffb3409
commit
dbef197de8
@ -1608,14 +1608,14 @@ class CognitoIdpBackend(BaseBackend):
|
|||||||
)
|
)
|
||||||
|
|
||||||
user_pool = None
|
user_pool = None
|
||||||
|
client = None
|
||||||
for p in self.user_pools.values():
|
for p in self.user_pools.values():
|
||||||
if client_id in p.clients:
|
if client_id in p.clients:
|
||||||
user_pool = p
|
user_pool = p
|
||||||
|
client = p.clients.get(client_id)
|
||||||
if user_pool is None:
|
if user_pool is None:
|
||||||
raise ResourceNotFoundError(client_id)
|
raise ResourceNotFoundError(client_id)
|
||||||
|
|
||||||
client = p.clients.get(client_id)
|
|
||||||
|
|
||||||
if auth_flow is AuthFlow.USER_SRP_AUTH:
|
if auth_flow is AuthFlow.USER_SRP_AUTH:
|
||||||
username = auth_parameters.get("USERNAME")
|
username = auth_parameters.get("USERNAME")
|
||||||
srp_a = auth_parameters.get("SRP_A")
|
srp_a = auth_parameters.get("SRP_A")
|
||||||
|
Loading…
Reference in New Issue
Block a user