From f4f5c739b5af4b3c3b249dd3801b076327712bc1 Mon Sep 17 00:00:00 2001 From: Gyanesh Gouraw Date: Mon, 15 Apr 2024 15:14:51 +0530 Subject: [PATCH] Added mock api response in /par response wrt. authorization_details parameter --- test/auth/fixtures/oauth.json | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/auth/fixtures/oauth.json b/test/auth/fixtures/oauth.json index 0c8e4ac6f..4489dd04f 100644 --- a/test/auth/fixtures/oauth.json +++ b/test/auth/fixtures/oauth.json @@ -167,5 +167,16 @@ "request_uri": "https://www.request.uri", "expires_in": 86400 } + }, + { + "scope": "https://test-domain.auth0.com", + "method": "POST", + "path": "/oauth/par", + "body": "client_id=test-client-id&response_type=code&redirect_uri=https%3A%2F%2Fexample.com&authorization_details=%5B%7B%22type%22%3A%22payment_initiation%22%2C%22actions%22%3A%5B%22write%22%5D%7D%5D&client_secret=test-client-secret", + "status": 200, + "response": { + "request_uri": "https://www.request.uri", + "expires_in": 86400 + } } ]