open-payments client should validate management url format #247
Labels
good first issue
Good for newcomers
hacktoberfest
pkg: open-payments
Changes in the open-payments package
type: specification
Changes to the specification
Anytime we return an
access_token
in theopen-payments
client (grant creation, grant continuation, token rotation), theaccess_token
format should always match the format:${grant.authServer.url}/token/${grant.managementId}
.Related thread
Note: because the client validates responses against the spec, we can also add a regex to the spec directly for checking this, something similar to how we define the pattern for
receiver
:pattern: '^(https|http)://(.+)/incoming-payments/(.+)$'
.The text was updated successfully, but these errors were encountered: