Skip to content

DDCORE-14001: quick start with OIDC refresh token#441

Open
AydartsyanGrisha wants to merge 1 commit into
diadoc:masterfrom
AydartsyanGrisha:ddcore-14001-quick-start-with-oidc-refresh-token
Open

DDCORE-14001: quick start with OIDC refresh token#441
AydartsyanGrisha wants to merge 1 commit into
diadoc:masterfrom
AydartsyanGrisha:ddcore-14001-quick-start-with-oidc-refresh-token

Conversation

@AydartsyanGrisha

Copy link
Copy Markdown

No description provided.

@AydartsyanGrisha AydartsyanGrisha self-assigned this Jul 10, 2026

@Override
public String getToken() {
String token = cachedAccessToken;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

а хорошая ли идея? если время жизни токена истечет то он станет невалиден

HttpPost request = new HttpPost(baseUrl + OIDC_TOKEN_ENDPOINT_PATH);
request.setEntity(new UrlEncodedFormEntity(parameters, StandardCharsets.UTF_8));

try (CloseableHttpClient httpClient = HttpClients.createDefault();

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

proxyHost, connectionSettings не нужны из настроек?
типо
.setProxy(proxyHost)
.setConnectTimeout(connectionSettings.getConnectTimeout())
.setSocketTimeout(connectionSettings.getSocketTimeout())
.build();

@AydartsyanGrisha AydartsyanGrisha force-pushed the ddcore-14001-quick-start-with-oidc-refresh-token branch from 5a5b883 to 496f818 Compare July 16, 2026 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants