Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow phone call authentication #83

Merged
merged 2 commits into from
Apr 9, 2018
Merged

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