Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit22896e8

Browse files
authored
Merge pull request#1501 from lowcoder-org/feature/auth_header_of_query
Authentication Type default value added for datasource
2 parents59324cd +5b08e71 commit22896e8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎server/api-service/lowcoder-server/src/main/java/org/lowcoder/api/query/ApplicationQueryApiServiceImpl.java‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,15 @@ protected Mono<List<Property>> getAuthParamsAndHeadersInheritFromLogin(User user
196196
if(authId ==null) {
197197
returnMono.empty();
198198
}
199+
200+
StringfilterAuthId;
201+
if(StringUtils.isEmpty(authId))filterAuthId =user.getActiveAuthId();
202+
else {
203+
filterAuthId =authId;
204+
}
199205
Optional<Connection>activeConnectionOptional =user.getConnections()
200206
.stream()
201-
.filter(connection ->connection.getAuthId().equals(authId))
207+
.filter(connection ->connection.getAuthId().equals(filterAuthId))
202208
.findFirst();
203209
if(!activeConnectionOptional.isPresent() ||activeConnectionOptional.get().getAuthConnectionAuthToken() ==null) {
204210
returnMono.empty();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp