Skip to content

Commit 60f8e75

Browse files
committed
Use the DEFAULT_URI setting for SAML base url instead of auto determining it.
This should fix issue Part-DB#436
1 parent 3e13a0d commit 60f8e75

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ USE_GRAVATAR=0
4646
# Please note that the php.ini setting upload_max_filesize also limits the maximum size of uploaded files
4747
MAX_ATTACHMENT_FILE_SIZE="100M"
4848

49-
# The public reachable URL of this Part-DB installation. This is used for generating links to the website in emails and so on
49+
# The public reachable URL of this Part-DB installation. This is used for generating links in SAML and email templates
5050
# This must end with a slash!
5151
DEFAULT_URI="https://partdb.changeme.invalid/"
5252

@@ -181,6 +181,7 @@ EDA_KICAD_CATEGORY_DEPTH=0
181181
# SAML Single sign on-settings
182182
###################################################################################
183183
# Set this to 1 to enable SAML single sign on
184+
# Be also sure to set the correct values for DEFAULT_URI
184185
SAML_ENABLED=0
185186

186187
# Set to 1, if your Part-DB installation is behind a reverse proxy and you want to use SAML

config/packages/nbgrp_onelogin_saml.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ nbgrp_onelogin_saml:
3232
privateKey: '%env(string:default:saml.sp.privateKey:string:SAMLP_SP_PRIVATE_KEY)%'
3333

3434
# Optional settings
35-
#baseurl: 'http://myapp.com'
35+
baseurl: '%partdb.default_uri%saml/'
3636
strict: true
3737
debug: false
3838
security:

0 commit comments

Comments
 (0)