Authorization Errors
Unable to login into PactFlow user interface​
When you sign up for PactFlow, you will be emailed the login details with a temporary password. This password is valid for 7 days. If you need the password reset, you can reset the clock on this expiry by simply re-inviting the user. Alternatively, contact us and we will reset it for you.
Github login error​
If you get an invalid_grant: {"error":"invalid_grant"}
error while logging into PactFlow using Github, clear your browser cookies before logging in again.
Getting a 401 Unauthorized when publishing or verifying pacts​
The most common reasons for API authentication failures are:
- Using an old version of Pact library that does not support the PactFlow authentication scheme (bearer token authentication).
- To resolve this, make sure you are using the latest Pact library version for your language.
- Attempting to access the API with a username and password instead of an API token.
- To resolve this, please see the section on configuring your API token
- Using a read-only token instead of a read/write token.
- To resolve this, please see the section on configuring your API token and ensure you have copied the read/write token.