From cdff04e3b480a039bea0481c15dfccc5d90066db Mon Sep 17 00:00:00 2001 From: Dawid Heyman Date: Fri, 10 Jan 2025 14:34:09 +0100 Subject: [PATCH] Remove obsolete config --- .../successful_flow_default_redirect_uri.json | 77 ------------------- 1 file changed, 77 deletions(-) delete mode 100644 src/test/resources/wiremock/mappings/oauth/authorization_code/successful_flow_default_redirect_uri.json diff --git a/src/test/resources/wiremock/mappings/oauth/authorization_code/successful_flow_default_redirect_uri.json b/src/test/resources/wiremock/mappings/oauth/authorization_code/successful_flow_default_redirect_uri.json deleted file mode 100644 index 0fb9a0b1f..000000000 --- a/src/test/resources/wiremock/mappings/oauth/authorization_code/successful_flow_default_redirect_uri.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "mappings": [ - { - "scenarioName": "Successful OAuth authorization code flow with default redirectUri", - "requiredScenarioState": "Started", - "newScenarioState": "Authorized", - "request": { - "urlPathPattern": "/oauth/authorize", - "queryParameters": { - "response_type": { - "equalTo": "code" - }, - "scope": { - "equalTo": "session:role:ANALYST" - }, - "code_challenge_method": { - "equalTo": "S256" - }, - "redirect_uri": { - "matches": "^http://127.0.0.1:([1-9]*)/" - }, - "code_challenge": { - "matches": ".*" - }, - "state": { - "matches": ".*" - }, - "client_id": { - "equalTo": "123" - } - }, - "method": "GET" - }, - "response": { - "status": 302, - "headers": { - "Location": "http://localhost:8009/snowflake/oauth-redirect?code=123&state=abc123" - } - } - }, - { - "scenarioName": "Successful OAuth authorization code flow with default redirectUri", - "requiredScenarioState": "Authorized", - "newScenarioState": "Acquired access token", - "request": { - "urlPathPattern": "/oauth/token-request.*", - "method": "POST", - "headers": { - "Authorization": { - "contains": "Basic" - }, - "Content-Type": { - "contains": "application/x-www-form-urlencoded; charset=UTF-8" - } - }, - "bodyPatterns": [ - { - "contains": "grant_type=authorization_code&code=123&redirect_uri=http%3A%2F%2Flocalhost%3A8009%2Fsnowflake%2Foauth-redirect&code_verifier=" - } - ] - }, - "response": { - "status": 200, - "jsonBody": { - "access_token": "access-token-123", - "refresh_token": "123", - "token_type": "Bearer", - "username": "user", - "scope": "refresh_token session:role:ANALYST", - "expires_in": 600, - "refresh_token_expires_in": 86399, - "idpInitiated": false - } - } - } - ] -}