Skip to content

Dbeaver/cloudbeaver#4120 support token header#4259

Merged
serge-rider merged 25 commits into
develfrom
dbeaver/cloudbeaver#4120-support-token-header
May 11, 2026
Merged

Dbeaver/cloudbeaver#4120 support token header#4259
serge-rider merged 25 commits into
develfrom
dbeaver/cloudbeaver#4120-support-token-header

Conversation

@HocKu7

@HocKu7 HocKu7 commented Apr 2, 2026

Copy link
Copy Markdown
Contributor

Closes #4120

@codacy-production

codacy-production Bot commented Apr 2, 2026

Copy link
Copy Markdown

Not up to standards ⛔

🔴 Issues 1 critical

Alerts:
⚠ 1 issue (≤ 0 issues of at least minor severity)

Results:
1 new issue

Category Results
Security 1 critical

View in Codacy

🟢 Metrics 0 complexity · -2 duplication

Metric Results
Complexity 0
Duplication -2

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

yagudin10
yagudin10 previously approved these changes Apr 20, 2026
Comment thread server/bundles/io.cloudbeaver.model/src/io/cloudbeaver/server/CBConstants.java Outdated
}

@NotNull
protected WebSession createWebSessionImpl(@NotNull WebHttpRequestInfo request) throws DBException {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

No need to create extra function for session create. Move session type into WebHttpRequestInfo.


String userId = GraphQLLoggerUtil.getUserId(request);
LocalDateTime startTime = LocalDateTime.now();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

No need to pass these params to isQueryHandledBeforeExecution and notifyApiCallInterceptor, they can be extracted from request on demand.

@serge-rider serge-rider merged commit fb6f3c8 into devel May 11, 2026
9 of 10 checks passed
@serge-rider serge-rider deleted the dbeaver/cloudbeaver#4120-support-token-header branch June 1, 2026 19:12
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.

Support HTTP header credentials for the authLogin graphql query

4 participants