appauth
Provides a credential strategy for app password authentication.
- Package
github.com/cs3org/reva/v3/internal/http/interceptors/auth/credential/strategy/appauth- Source
- internal/http/interceptors/auth/credential/strategy/appauth · Go reference
Overview
Package appauth provides a credential strategy for app password authentication. It reads HTTP Basic Auth credentials and emits them with type “appauth”, so the gateway routes the Authenticate call to the appauth auth provider rather than the regular (e.g. LDAP) basic auth provider.
Assign this strategy to specific user agents via credentials_by_user_agent in the HTTP auth middleware config. For example, routing all Nextcloud desktop client requests (User-Agent contains “mirall”) to appauth while leaving other clients on the regular “basic” strategy avoids breaking LDAP auth.