FIX: verify that sso_url setting includes protocol

This commit is contained in:
Arpit Jalan 2016-04-06 11:12:47 +05:30
parent 4f10b5e940
commit 9a045c216c
2 changed files with 4 additions and 2 deletions

View File

@ -944,7 +944,7 @@ en:
enable_sso: "Enable single sign on via an external site (WARNING: USERS' EMAIL ADDRESSES *MUST* BE VALIDATED BY THE EXTERNAL SITE!)"
enable_sso_provider: "Implement Discourse SSO provider protocol at the /session/sso_provider endpoint, requires sso_secret to be set"
sso_url: "URL of single sign on endpoint"
sso_url: "URL of single sign on endpoint (must include http:// or https://)"
sso_secret: "Secret string used to cryptographically authenticate SSO information, be sure it is 10 characters or longer"
sso_overrides_email: "Overrides local email with external site email from SSO payload on every login, and prevent local changes. (WARNING: discrepancies can occur due to normalization of local emails)"
sso_overrides_username: "Overrides local username with external site username from SSO payload on every login, and prevent local changes. (WARNING: discrepancies can occur due to differences in username length/requirements)"

View File

@ -266,7 +266,9 @@ login:
client: true
default: false
enable_sso_provider: false
sso_url: ''
sso_url:
default: ''
regex: '^https?:\/\/.+[^\/]$'
sso_secret: ''
sso_overrides_email: false
sso_overrides_username: false