James Braund
04/26/2023, 4:15 PM/token endpoint. As per the OIDC spec, we've implemented the /token endpoint to accept a request with Content-Type of application/x-www-form-urlencoded.
The intention was for us to use fromProviderState to match the body and allow a valid authentication grant to be generated and injected by the provider tests. However, it seems Pact doesn't currently support matchers on unstructured body content (https://github.com/pact-foundation/pact-js/issues/767).
Second attempt - we looked at ignoring the body in the contract spec, and then using reqFilter in the Verifier to generated and inject the authN grant into the body. But we then ran into an outstanding bug which means unstructured content doesn't get injected correctly into the request body (https://github.com/pact-foundation/pact-js/issues/884).
Is there another approach we're missing here? And is there any priority being given to address either of these issues?
Many thanks!Timothy Jones
04/26/2023, 6:10 PMJames Braund
04/26/2023, 6:13 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)