public void testWithSsl(RestService restService) {
// System.setProperty("javax.net.debug", "ssl,handshake");
CookieFilter cookieFilter = new CookieFilter();
RestAssuredConfig sslConfig = SslConfiguration.getP12Config();
Response response = restService.restClient()
.get(spec -> spec
.filter(cookieFilter)
.config(sslConfig)
.log().all(),
AuthConfiguration.AUTH_URL)
.toResponse();
System.out.println("=== RESPONSE ===");
response.then().log().all();
}
"Request method: GET
Request URI: https://sber911-ift-iam.delta.sbrf.ru/sber911/
Proxy: <none>
Request params: <none>
Query params: <none>
Form params: <none>
Path params: <none>
Headers: Accept=*/*
Cookies: <none>
Multiparts: <none>
Body: <none>
=== RESPONSE ===
HTTP/1.1 302 Moved Temporarily
Date: Tue, 14 Jul 2026 14:57:07 GMT
Content-Type: text/html
Content-Length: 138
Connection: keep-alive
Keep-Alive: timeout=170
Set-Cookie: PLATFORM_SESSION=REM1CQY5eFaH7X0pG6vOkw..|1784044627|C-cCJhmtQxPIaqnEZIi1T7Ao7HSNhnQU8sMIn4E6PLqmWYvtaC5SC7gWtGAlmHeayAC7SabScK5BZTHvTD5EsODlYFYmTlKIesKEubwYYPdweKe0afL7FIGGGykSt0KKSgb7biAq5Np3dQM0_dHespE5Tkk_Wc9F14Wk6b5Ykm1P4_dJHKRMTCX_tY4lR-7T8clZcIG0dBkYFIV34oATPsoz0LktlfDAqCvsoKgWo0gGW0eiUa3r3in7zBuMoOJZwxnMpQPdL-7_vjot3D4VbdhhInK6UbL2No8cV7vG4hI.|v5nT98StAgLD4TCWDYNsbstp5h8.; Path=/; SameSite=Lax; Secure; HttpOnly
Set-Cookie: PLATFORM_SESSION_ID=444335090639785687ed7d291babce93; Path=/; SameSite=Lax; Secure; HttpOnly
Cache-Control: no-cache
Location: https://auth-dmz-ift.sigma.sbrf.ru/auth/realms/sigma/protocol/openid-connect/auth?client_id=CI00233293&scope=openid%20basic%20extended%20access%20cert&nonce=0d2c8b9b178559876c6d52dc9b3a089d&redirect_uri=https%3A%2F%2Fsber911-ift-iam.delta.sbrf.ru%2Fopenid-connect-auth%2Fredirect_uri&state=4e3e59287c6eaf1f39fd906c32885564&response_type=code
X-Proxy-Request-ID: ed83026757bed33aea52b6cf3f6d90b9
Server: PlatformV IAM/3.2.0 AUTH/4.6.0 (IAM Proxy; distribution 3.2.0-2-repacked-318) SberLinux/8.10 (VMware; 2 vCPU; tvlss-sber00013)
X-Proxy: 10.48.74.227
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
Expires: Thu, 01 Jan 1970 00:00:01 GMT"
как видишь, сервер возвращает нам куку (для след запроса) и Location куда нам дальше идти что бы получить куку. дополни метод еще одним запросом уже по этим данным