loginflow
Implements the anonymous side of the login flow for enrolling the Nextcloud Desktop sync client without a password.
- Package
github.com/cs3org/reva/v3/internal/http/services/loginflow- Source
- internal/http/services/loginflow · Go reference
Enable it
Add this table to the revad configuration file:
[http.services.loginflow]
# settings belowOverview
Package loginflow implements the anonymous side of the login flow for enrolling the Nextcloud Desktop sync client without a password. It lives under /index.php/login/v2 because that is the path sync clients expect.
This service holds only the endpoints the sync client and the browser hit unauthenticated: init, poll, and the browser redirect. The authenticated user actions (info, grant, deny) live in the OCS service, behind the auth middleware, next to the connected-clients management API.
Configuration
config
| Key | Type | Default | Description |
|---|---|---|---|
server_base_url | string | - | source |
webui_url | string | same as server_base_url | source |
flow_ttl_seconds | int | 1200 | source |
appauth_driver | string | "json" | source |
appauth_drivers | map[string]map[string]any | - | source |
store_driver | string | "sql" | source |
store_drivers | map[string]map[string]any | - | source |
ratelimit | rateLimitConfig | - | source |
rateLimitConfig
| Key | Type | Default | Description |
|---|---|---|---|
syncclient_per_ip_per_min | int | - | SyncClientPerIPPerMin is the per-IP limit shared by all routes. source |
poll_per_token_per_min | int | - | source |
poll_wait_ms | int | - | source |
trusted_proxy_cidrs | []string | - | TrustedProxyCIDRs lists the reverse proxies whose X-Forwarded-For header identifies the client for the per-IP limit. source |