Skip to content

CB-1546 reverse proxy header auth#709

Merged
serge-rider merged 1 commit intodevelfrom
tech/CB-1546
Mar 15, 2022
Merged

CB-1546 reverse proxy header auth#709
serge-rider merged 1 commit intodevelfrom
tech/CB-1546

Conversation

@yagudin10
Copy link
Copy Markdown
Member

No description provided.

@yagudin10 yagudin10 requested a review from serge-rider March 15, 2022 08:31
Comment on lines +37 to +40
if (!configMode && CBApplication.getInstance().getAppConfiguration().isSupportsReverseProxyAuth()) {
reverseProxyAuthentication(request, webSession);
}
return false;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
if (!configMode && CBApplication.getInstance().getAppConfiguration().isSupportsReverseProxyAuth()) {
reverseProxyAuthentication(request, webSession);
}
return false;
if (configMode || !CBApplication.getInstance().getAppConfiguration().isSupportsReverseProxyAuth()) {
return false;
}
return reverseProxyAuthentication(request, webSession);

String[] userRoles = roles.split("\\|");
WebUser curUser = webSession.getUser();
SMSession authSession;
if (userName != null) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

if(CommonUtils.isEmpty(userName)) {
return false;
}
---other code---

@serge-rider serge-rider merged commit b0d3239 into devel Mar 15, 2022
@yagudin10 yagudin10 deleted the tech/CB-1546 branch March 17, 2022 10:28
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.

3 participants