Skip to content

Commit 64ec7c9

Browse files
authored
Merge pull request #769 from nextcloud/fix/noid/redirect-hard-idp
fix(login): do not hardcode IdP to 1 on redirect
2 parents 3da9509 + 3fe8a24 commit 64ec7c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

appinfo/app.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@
199199
[
200200
'requesttoken' => $csrfToken->getEncryptedValue(),
201201
'originalUrl' => $originalUrl,
202-
'idp' => 1,
202+
'idp' => array_keys($configuredIdps)[0] ?? '',
203203
]
204204
);
205205
header('Location: '.$targetUrl);

0 commit comments

Comments
 (0)