Skip to content

Allow phone call authentication#83

Merged
venth merged 2 commits intoventh:masterfrom
KyleJamesWalker:master
Apr 9, 2018
Merged

Allow phone call authentication#83
venth merged 2 commits intoventh:masterfrom
KyleJamesWalker:master

Conversation

@KyleJamesWalker
Copy link
Contributor

The app would crash when calling a phone.

Copy link
Owner

@venth venth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you like to consider usage of limited number of repetition instead of while true?

@KyleJamesWalker
Copy link
Contributor Author

No problem, I'll add a limit shortly! Thanks!

Example Output when limit reduced:
```
$ aws-adfs login --adfs-host=sso.zefr.com
Sending request for authentication
Waiting for additional authentication
Error: There was an issue during sending code to the device. The responses: ['{"response": {"status_code": "calling", "status": "Calling your phone..."}, "stat": "OK"}', '{"response": {"status_code": "calling", "status": "Dialing XXX-XXX-1231...", "msg_info": {"number": "XXX-XXX-1231"}}, "stat": "OK"}']
```
@KyleJamesWalker
Copy link
Contributor Author

I decided to save the response.text if it loops to many times for the error.

Example Output when limit reduced:

$ aws-adfs login --adfs-host=sso.zefr.com
Sending request for authentication
Waiting for additional authentication
Error: There was an issue during sending code to the device. The responses: ['{"response": {"status_code": "calling", "status": "Calling your phone..."}, "stat": "OK"}', '{"response": {"status_code": "calling", "status": "Dialing XXX-XXX-1231...", "msg_info": {"number": "XXX-XXX-1231"}}, "stat": "OK"}']

@venth venth merged commit 2215ee2 into venth:master Apr 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants