Skip to content
This repository was archived by the owner on Feb 10, 2021. It is now read-only.

Implementation of wrong credentials exception#29

Merged
lnunes-daitan merged 6 commits intomasterfrom
missing_creds_exception
Jun 18, 2015
Merged

Implementation of wrong credentials exception#29
lnunes-daitan merged 6 commits intomasterfrom
missing_creds_exception

Conversation

@lnunes-daitan
Copy link
Contributor

On getInstance() and setCredentials, added a call to getAccountInfo to validate if set credentials are correct

Choose a reason for hiding this comment

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

If 400 is returned, it means that the credentials are invalid not missing, isn't it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Only error 401 matters here. It refers to this case of error: {"category":"authorization","code":"access-denied","message":"The authenticated user does not have sufficient permissions to access this resource","details":[{"name":"requestMethod","value":"GET"},{"name":"remoteAddress","value":"127.0.0.1"},{"name":"requestPath","value":"/users/your_User_Id_here/account"}]}

Choose a reason for hiding this comment

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

Ensure that if user provides any credential with white spaces, it will be removed on SDK.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@lvivo-daitan
Copy link
Contributor

Regarded Leo's points, Approved.

lnunes-daitan added a commit that referenced this pull request Jun 18, 2015
Implementation of wrong credentials exception
@lnunes-daitan lnunes-daitan merged commit 85a43fa into master Jun 18, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants