Expand description
Credential types for the Nextcloud SDK.
Every provider here implements sdk_core::AuthProvider and only
mutates request headers, so callers stay generic over the credential
format:
BasicAuthโ user name plus app password,Authorization: Basic.BearerAuthโ OAuth2 access token,Authorization: Bearer.Anonymousโ no credentials, plus theOCS-APIRequestmarker OCS endpoints require.
Secrets are held in SecretString, whose Debug output is redacted and
which deliberately has neither a Display nor a Serialize impl.
Structsยง
- Anonymous
- Applies no credentials at all.
- AppPassword
- A Nextcloud user name paired with an app password.
- Basic
Auth - Applies
AppPasswordcredentials as anAuthorization: Basicheader. - Bearer
Auth - Applies an OAuth2 access token as an
Authorization: Bearerheader. - Bearer
Token - An OAuth2 access token issued by a Nextcloud instance.
- Secret
String - A string whose contents never appear in logs or
Debugoutput.