Merge pull request #150 from JeroenoBoy/patch-1

Remove trimming from Provider URL
This commit is contained in:
Marc Ole Bulling
2024-03-31 14:07:28 -07:00
committed by GitHub

View File

@@ -293,9 +293,6 @@ func parseOAuthSettings(result *models.Configuration, formObjects *[]jsonFormObj
if err != nil {
return err
}
if strings.HasSuffix(result.Authentication.OAuthProvider, "/") {
result.Authentication.OAuthProvider = strings.TrimRight(result.Authentication.OAuthProvider, "/")
}
result.Authentication.OAuthClientId, err = getFormValueString(formObjects, "oauth_id")
if err != nil {