Skip to content

Commit

Permalink
handle password management for preauth mode
Browse files Browse the repository at this point in the history
  • Loading branch information
marwanehcine committed Feb 4, 2024
1 parent fb6e1c0 commit 697cae1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions datadir/default.properties
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,7 @@ smtpHost=smtp
# SMTP server domain name
# Listening port of the SMTP server
smtpPort=25


# Header Authentication
headerAuthentication=true
4 changes: 3 additions & 1 deletion datadir/nginx-preauth/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ server {
proxy_set_header preauth-firstname "test";
proxy_set_header preauth-lastname "admin";
proxy_set_header preauth-org "georchestra";
proxy_set_header preauth-idp "INRAE";
proxy_set_header preauth-userid "f77ded4f-734e-4cbf-8003-627a49c0c499";

proxy_pass http://gateway:8080;
}

}
}
2 changes: 1 addition & 1 deletion gateway/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ georchestra:
create-non-existing-users-in-l-d-a-p: false
defaultOrganization: ${defaultOrganization:}
header-authentication:
enabled: false
enabled: ${headerAuthentication:false}
events:
rabbitmq:
# Note usually enableRabbitmqEvents, rabbitmqHost, etc. come from georchestra's default.properties
Expand Down

0 comments on commit 697cae1

Please sign in to comment.