nextcloud / user_external

👥 External user authentication methods like IMAP, SMB and FTP
https://apps.nextcloud.com/apps/user_external
108 stars 64 forks source link

Support for custom authorization header and skip canary check #158

Open ppacher opened 4 years ago

ppacher commented 4 years ago

Changes proposed in this pull request:

This PR adds two additional (optional) parameters to the BasicAuth class:

  1. Support for a custom authorization header (defaults to authorization)
  2. Support to disable the "www-authenticate" canary check

The above changes are required to integrate with services, for example Authelia, that expect a different "Authorization" header and do not reply with "WWW-Authenticate" because they don't want the browsers to show the "User/Password" dialog.

Changes should be backwards compatible.