Skip to content

Commit

Permalink
Update wording for changelog and error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
petterhj committed Oct 31, 2023
1 parent 384d05a commit 5b863c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ All notable changes to this project will be documented in this file. The format
percentage as unit of measurement by default.
- The API authorization mechanism has been reworked. The API now accepts a pair
of `okr-client-id` and `okr-client-secret` headers to authorize clients.
Clients can be created using the admin interface. The existing
`okr-team-secret` header is considered deprecated and will continue to work
for existing clients until migrated.
The interface for managing client credentials can be found in the item
navigation bar. The existing `okr-team-secret` header is considered deprecated
and will continue to work for existing clients until migrated.

### Security

Expand Down
6 changes: 3 additions & 3 deletions functions/api/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export async function checkApiAuth(parentRef, req, res) {
res.status(401).json({
message:
`No API client \`${clientId}\` exists for '${parentName}'. Please ` +
'create one using the OKR Tracker admin interface.',
'create one in the OKR Tracker integrations admin.',
});
return false;
}
Expand All @@ -264,7 +264,7 @@ export async function checkApiAuth(parentRef, req, res) {
res.status(401).json({
message:
`Invalid client secret provided for API client \`${clientId}\`. ` +
'Check the OKR Tracker admin interface for how to rotate the secret.',
'Check the OKR Tracker integrations admin for how to rotate the secret.',
});
return false;
}
Expand All @@ -277,7 +277,7 @@ export async function checkApiAuth(parentRef, req, res) {
res.status(401).json({
message:
`'${parentData.name}' is not set up for API usage. Please set ` +
'a secret using the OKR Tracker admin interface.',
'a secret through the OKR Tracker integrations admin.',
});
return false;
}
Expand Down

0 comments on commit 5b863c7

Please sign in to comment.