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

Add support for checking connection status #662

Merged
merged 4 commits into from
Oct 4, 2021
Merged

Conversation

frederikprijck
Copy link
Member

Changes

Adds support for the missing endpoint to check a connection's status: https://auth0.com/docs/api/management/v2#!/Connections/get_status.

Can be used:

auth0.connections.checkStatus({ id })
  .then(() => /* ONLINE */)
  .catch(() => /* OFFLINE */);

or

auth0.connections.checkStatus({ id }, function(err, result) => {
  if (err) {
    /* OFFLINE */
  } else {
    /* ONLINE */
  }
});

References

Closes #655

Testing

Please describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. If this library has unit and/or integration testing, tests should be added for new functionality and existing tests should complete without errors.

  • This change adds unit test coverage
  • This change adds integration test coverage

Checklist

@frederikprijck frederikprijck requested a review from a team as a code owner October 1, 2021 14:36
@frederikprijck frederikprijck merged commit 0d83e5d into master Oct 4, 2021
@frederikprijck frederikprijck deleted the frederik/sdk-2820 branch October 4, 2021 08:57
@adamjmcgrath adamjmcgrath mentioned this pull request Oct 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support the check connection status endpoint
2 participants