2017-06-04 4 views
0

Salut, je suis en cours d'exécution aws clibout initAuth où puis-je obtenir SRPA

Voici mon code

aws --region ap-southeast-2 cognito-idp initiate-auth --cli-input-json file://initiate-auth.json 

et fichier JSON

{ "AuthFlow": "USER_SRP_AUTH", "AuthParameters": { 
    "USERNAME" : "gabrielwu", 
    "SRPA": "?????", 
    "SECRET_HASH":"yyVMuFNZEehJ6Io9WZWUsngJFBVdsjqwX1zMyRhe+Bg=" }, "ClientId": "31vegbhbi2hesihbc0m4h5r8p1" } 

Eh bien, je n » Je sais comment je peux générer SRPA. Je sais utiliser Python. Y at-il une bibliothèque Python peut aider cela?

Répondre

1

Cela peut être assez tard, mais se référer à this post stackoverflow. Il contient le lien vers une telle bibliothèque et quelques très bonnes indications sur le fonctionnement de SRP et ChallengeResponse.