Skip to content

open-payments client should validate management url format #247

Open
@sabineschaller

Description

@sabineschaller

Anytime we return an access_token in the open-payments client (grant creation, grant continuation, token rotation), the access_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/(.+)$'.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions