cevoaustralia / aws-google-auth

Provides AWS STS credentials based on Google Apps SAML SSO auth (what a jumble!)
MIT License
537 stars 181 forks source link

Catch exception raised when empty string is given when selecting role #113

Closed fenak closed 5 years ago

fenak commented 5 years ago

Kind of related to #93 .

When presented with the list of roles available to assume, if the user doesn't enter anything on the field it just crashes, as it doesn't have any default value to select.

I'm not 100% on auto-selecting a role, but this change just avoids the library to crash, prompting the user to enter a valid input.

coveralls commented 5 years ago

Coverage Status

Coverage remained the same at 45.623% when pulling 6a31971729a577c36842c9ee37c23fbe554c9d26 on fenak:avoid-crash-when-no-role-selected into 519ddfb33a09af7782f27341d4609a778ffaf29a on cevoaustralia:master.