aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Lib/Auth/OAuth2/OAuth2.php
diff options
context:
space:
mode:
authorStephan Orbaugh <62374139+sorbaugh@users.noreply.github.com>2025-05-06 13:36:43 +0200
committerGitHub <noreply@github.com>2025-05-06 13:36:43 +0200
commit02de206a03d4b42385e05d86ee0fd22585a414ec (patch)
tree84438c6cfbf6472fb889c559064697d47aade051 /apps/files_external/lib/Lib/Auth/OAuth2/OAuth2.php
parent53f71da4735cae0b6294278a84c4ce281f7e127c (diff)
parent2525d4b6ff4317c5ac4780257b7d924159ed163c (diff)
downloadnextcloud-server-stable28.tar.gz
nextcloud-server-stable28.zip
Merge pull request #52647 from nextcloud/backport/52628/stable28stable28
[stable28] fix(files_external): Mark password fields for LoginCredentials and SessionCredentials as hidden and optional
Diffstat (limited to 'apps/files_external/lib/Lib/Auth/OAuth2/OAuth2.php')
-rw-r--r--apps/files_external/lib/Lib/Auth/OAuth2/OAuth2.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files_external/lib/Lib/Auth/OAuth2/OAuth2.php b/apps/files_external/lib/Lib/Auth/OAuth2/OAuth2.php
index 4dc2b23035a..bb8243552e5 100644
--- a/apps/files_external/lib/Lib/Auth/OAuth2/OAuth2.php
+++ b/apps/files_external/lib/Lib/Auth/OAuth2/OAuth2.php
@@ -38,12 +38,14 @@ class OAuth2 extends AuthMechanism {
->setText($l->t('OAuth2'))
->addParameters([
(new DefinitionParameter('configured', 'configured'))
- ->setType(DefinitionParameter::VALUE_HIDDEN),
+ ->setType(DefinitionParameter::VALUE_TEXT)
+ ->setFlag(DefinitionParameter::FLAG_HIDDEN),
new DefinitionParameter('client_id', $l->t('Client ID')),
(new DefinitionParameter('client_secret', $l->t('Client secret')))
->setType(DefinitionParameter::VALUE_PASSWORD),
(new DefinitionParameter('token', 'token'))
- ->setType(DefinitionParameter::VALUE_HIDDEN),
+ ->setType(DefinitionParameter::VALUE_PASSWORD)
+ ->setFlag(DefinitionParameter::FLAG_HIDDEN),
])
->addCustomJs('oauth2')
;