Загрузка данных


    RestAssuredConfig sslConfig = SslConfiguration.getP12Config();
    Response response = restService.restClient()
        .get(spec -> spec
                .config(sslConfig)
                .log().all(),
            AuthConfiguration.AUTH_URL)
        .toResponse();

    System.out.println(response.statusCode());
    System.out.println(response.getDetailedCookies());
    System.out.println(response.getHeaders());
    response.then().log().all();

public class SslConfiguration {
  public static RestAssuredConfig getP12Config() {
    return RestAssuredConfig.config()
        .sslConfig(new SSLConfig()
            .keyStore(
                AuthConfiguration.CERTIFICATE_PATH,
                AuthConfiguration.CERTIFICATE_PASSWORD)
            .keystoreType("PKCS12")
            .relaxedHTTPSValidation()
        )
        .redirect(RedirectConfig.redirectConfig()
            .followRedirects(true)
            .allowCircularRedirects(true)
            .maxRedirects(20));
  }

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>
401
PLATFORM_SESSION=i4ALN0wi38ycj_9RvWTrMA..|1783673045|5Vd3a5X9t-Rp-80WeE5Muw..|2eg9pSx7ivVNSg9VbvbctAEJ7Mg.;Path=/;Secure;HttpOnly;SameSite=Lax
Date=Fri, 10 Jul 2026 07:44:05 GMT
Content-Type=text/html; charset=utf-8
Transfer-Encoding=chunked
Connection=keep-alive
Keep-Alive=timeout=170
Set-Cookie=PLATFORM_SESSION=i4ALN0wi38ycj_9RvWTrMA..|1783673045|5Vd3a5X9t-Rp-80WeE5Muw..|2eg9pSx7ivVNSg9VbvbctAEJ7Mg.; Path=/; SameSite=Lax; Secure; HttpOnly
X-Proxy-Request-ID=fb7ae5643af0504e0eacdba947201240
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
HTTP/1.1 401 Unauthorized
Date: Fri, 10 Jul 2026 07:44:05 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Keep-Alive: timeout=170
Set-Cookie: PLATFORM_SESSION=i4ALN0wi38ycj_9RvWTrMA..|1783673045|5Vd3a5X9t-Rp-80WeE5Muw..|2eg9pSx7ivVNSg9VbvbctAEJ7Mg.; Path=/; SameSite=Lax; Secure; HttpOnly
X-Proxy-Request-ID: fb7ae5643af0504e0eacdba947201240
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

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate"/>
    <meta http-equiv="Pragma" content="no-cache"/>
    <meta http-equiv="Expires" content="0"/>
    <link type="text/css" rel="stylesheet" href="/proxy/info.css"/>
    <title>Ошибка при аутентификации</title>
  </head>
  <body>
    <div class="main">
      <div>
        <img class="img" src="/proxy/cat404.png"/>
      </div>
      <div class="msg">
        <h1>Ошибка при аутентификации</h1>

        Error auth by OIDC. request to the redirect_uri path but there's no session state found

                <p>
Повторить           <a shape="rect" href="/">вход в систему</a>
.        </p>
        <hr/>
        <em>Auth Platform team.</em>
      </div>
    </div>
  </body>
</html>