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

Catch and report invalid credentials error #5

Open
2 tasks
SpainTrain opened this issue Mar 16, 2017 · 0 comments
Open
2 tasks

Catch and report invalid credentials error #5

SpainTrain opened this issue Mar 16, 2017 · 0 comments

Comments

@SpainTrain
Copy link
Member

SpainTrain commented Mar 16, 2017

Overview

Currently one can provide no credentials, or invalid credentials, to this library and there is not error until CM API responds with 403. Even then, the cause of the error isn't clear (in the consuming app, given an app could have 403s for a number of reasons).

Add some basic handling around invalid credentials.

Tasks

  • Handle and throw descriptive error when creds aren't passed to lib
  • Handle and throw descriptive error when invalid creds are passed

Acceptance Criteria

As a consumer of this library, if I pass invalid creds it is either immediately obvious upon initing the lib, or it is clear when I make the first call the a CM API endpoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant