|
|
@ -35,17 +35,15 @@ class NextcloudClient extends DynamiteClient { |
|
|
|
baseHeaders: language != null ? {'Accept-Language': language} : null, |
|
|
|
baseHeaders: language != null ? {'Accept-Language': language} : null, |
|
|
|
userAgent: userAgentOverride ?? appType.userAgent, |
|
|
|
userAgent: userAgentOverride ?? appType.userAgent, |
|
|
|
authentications: [ |
|
|
|
authentications: [ |
|
|
|
if (appPassword != null) ...[ |
|
|
|
if (appPassword != null) |
|
|
|
DynamiteHttpBearerAuthentication( |
|
|
|
DynamiteHttpBearerAuthentication( |
|
|
|
token: appPassword, |
|
|
|
token: appPassword, |
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
if (loginName != null && (password ?? appPassword) != null) |
|
|
|
if (loginName != null && (password ?? appPassword) != null) ...[ |
|
|
|
|
|
|
|
DynamiteHttpBasicAuthentication( |
|
|
|
DynamiteHttpBasicAuthentication( |
|
|
|
username: loginName, |
|
|
|
username: loginName, |
|
|
|
password: (password ?? appPassword)!, |
|
|
|
password: (password ?? appPassword)!, |
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
|
|
|
|
], |
|
|
|
], |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|