Commit graph

56 commits

Author SHA1 Message Date
Arthur Schiwon 68f9c58314
adjust test
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-05-24 13:09:27 +02:00
Julius Härtl df218717c7 Cover UserChangedEvent in unit tests
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-04-11 10:14:20 +00:00
Valdnet f016e9c88f Fix test
Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
2022-04-08 16:59:45 +00:00
Joas Schilling dea8deab2a
Merge pull request #593 from nextcloud/update-master-phpunit-config
Update master php testing versions
2022-04-08 08:01:30 +02:00
Arthur Schiwon 77b14b6c6f fix old settings present when switching providers
- wrongly used way to set value attribute

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-04-07 20:29:04 +00:00
John Molakvoæ 24a632588c Add regex routes requirement to providerId
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2022-04-07 20:29:03 +00:00
Arthur Schiwon be6a8e97fe Move SAML configurations to a table of their own
- adds user_saml_configurations table and migrates existing configuration
- Controller methods are added since appconfig endpoints cannot be used
  anymore. THIS IS A BREAKING CHANGE.
- Frontend code is adjusted to use new endpoints.
- security-sloWebServerDecode was changed from global to provider specific
  setting. It being global seemed to be unintended. A migration path is yet
  missing.

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-04-07 20:29:03 +00:00
Joas Schilling e4b3f3aef4
Update master php testing versions
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-04-07 12:07:05 +02:00
John Molakvoæ 4510f70ff7
cs:fix
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2021-12-10 09:28:16 +01:00
blizzz d0e2667e20
Merge pull request #554 from nextcloud/bugfix/noid/autoprovision-decoded
Use effective uid for autoprovisioning new users
2021-10-27 23:24:11 +02:00
Julius Härtl fe2c286a3b
Fix tests after merge of multiple email addresses on server
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-10-27 14:58:44 +02:00
Julius Härtl 7930503cc3
Adapt user data mocks
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-10-21 13:13:01 +02:00
Arthur Schiwon 098a96ded5
fix deprecated usage of phpunit annotations
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-06-30 12:27:58 +02:00
Lukas Reschke ba7326b4ce Add new checkbox to AdminTest
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-05-04 17:36:32 +02:00
Arthur Schiwon b13a9983e2
adjust to recent merged changes
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-01-26 19:03:03 +01:00
Arthur Schiwon c06679fa74
adjust tests
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-01-26 14:32:28 +01:00
Arthur Schiwon 9ed277dc1f
sanitize and test user id received from IdP, if original does not match
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-01-26 14:31:04 +01:00
Arthur Schiwon 9672ed6ca5
make testEncodedObjectGUID more robust against false positives
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-01-20 17:05:17 +01:00
Arthur Schiwon 31bc57a4e9
redirects to homepage instead showing error on blank page
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2020-11-02 17:05:18 +01:00
Maxime Besson 8c4f9da56d Add occ command to dump metadata for a given provider
Signed-off-by: Maxime Besson <maxime.besson@worteks.com>
2020-08-18 18:41:54 +02:00
Roeland Jago Douma f5304f6757
Make work with posts and cookies again
Requires https://github.com/nextcloud/server/pull/21479 to fully work.
Basically don't save this info in the session (which is lax by default
starting with NC19 but also soon with new chromes and firefox). We now
save it is a cookie that is set to None. This is the best we can do I
think.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-07-10 10:01:16 +02:00
Julius Härtl e75809a5f7
Add setting to specify a different signature algorithm
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-02-13 16:01:03 +01:00
Joas Schilling 005a2fc845
Update supported versions and CI
Signed-off-by: Joas Schilling <coding@schilljs.com>

Fix unit tests

Signed-off-by: Joas Schilling <coding@schilljs.com>

adjust CI config

- NC 15 is EOL
- integration tests need PHP 7.3

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>

add test pipeline for NC 18

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>

go for 18 only

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2020-01-16 10:56:43 +01:00
Arthur Schiwon 89da6ce72d
add unit tests
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2019-09-19 15:16:46 +02:00
Frieder Schrempf 413c7a9239
Handle SLO logout requests from IdP via POST
Some IdPs send their SLO logout requests via POST. To handle
them we need to add an entry in the routing table.
Further, we need to hack around the issue, that php-saml only
handles GET by copying the request from $_POST to $_GET.

This solves #82.

Signed-off-by: Frieder Schrempf <frieder.schrempf@online.de>
2019-06-17 18:56:55 +02:00
Roeland Jago Douma 4e8ee3ae0a
Make NameIDFormat configurable
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-05-28 23:00:34 +02:00
Roeland Jago Douma 1365bf820d
Load a timezone file if no timezone is set
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-05-27 08:39:22 +02:00
Björn Schiessle 6734601db8
Merge pull request #188 from nextcloud/dav_saml
Add sabredav plugin to register environment auth for dav requests
2018-11-27 11:55:28 +01:00
Robin Appelman 847d2e0979 fix test
Signed-off-by: Robin Appelman <robin@icewind.nl>
2018-11-26 11:47:38 +01:00
Björn Schiessle 90483d4443
fix bootstrap
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
2018-11-22 15:44:44 +01:00
Daniel Klaffenbach 624d1a23b9 Implement mapping of user's home directory
Signed-off-by: Daniel Klaffenbach <daniel.klaffenbach@hrz.tu-chemnitz.de>
2018-11-22 09:45:08 +01:00
Björn Schiessle 64ac2fa7b0
adjust unit tests
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
2018-10-30 15:54:57 +01:00
Björn Schiessle 6d02ab0717
set base url to 'http://domain/nextcloud/index.php/apps/user_saml/saml'
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
2018-10-09 22:08:33 +02:00
Björn Schiessle ae999a9e41
fix test
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
2018-10-09 18:51:09 +02:00
Björn Schiessle 418d54fa2d
update unit tests
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
2018-09-25 16:47:01 +02:00
Björn Schiessle b6b576852a
we only allow multiple user back ends in combination with SAML, not with environment variables
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
2018-08-13 16:51:59 +02:00
Björn Schiessle 2d62533eac
fix unit tests
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
2018-08-03 12:43:20 +02:00
Julius Härtl 00711b8fbb
Fix attribute mapping config fetching
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2018-08-03 12:43:19 +02:00
Julius Härtl 174234a14e
Fix issue when removing and adding the first idp
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2018-08-03 12:42:09 +02:00
Julius Härtl 224a2d6a6c
Fix tests
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2018-08-03 12:42:09 +02:00
Sérgio Faria 423a76a843 Add and remove user groups with SAML
Based on PR #95, however:
- Also removes groups based on the group attribute(s).
- Supports groups with spaces (which the previous PR didn't).
- Includes unit test

Signed-off-by: Sérgio Faria <sergio.faria@is4health.com>
2018-03-19 16:07:42 +00:00
bne86 18aa824206 first version for group-mapping. groups are added and user assigned to groups. until now no group removal
Signed-off-by: bne86 <b.von.st.vieth@fz-juelich.de>
2018-03-19 16:07:33 +00:00
Roeland Jago Douma 82102c6f18
Merge pull request #196 from nextcloud/multiple-user-back-ends
Multiple user back ends
2018-03-19 14:01:07 +01:00
Björn Schiessle 8bc343da6f
make display name of SSO identity provider configurable
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
2018-03-19 12:51:38 +01:00
Björn Schiessle 370594b439
update unit tests
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
2018-03-19 12:51:38 +01:00
blizzz 1df4ef8f2b
Merge pull request #192 from nextcloud/fix/162/search-uid-if-not-known
try to lookup a user if the uid does not resolve and autoprov is disabled
2018-03-19 12:20:05 +01:00
Björn Schiessle 1141ca3fbb
adjust unit tests
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
2018-03-15 16:19:48 +01:00
Arthur Schiwon bed32b460f
try to lookup a user if the uid does not resolve and autoprov is disabled
it might well may be that the user exists but is not yet known to the
specific backend in Nextcloud and need to be mapped first.

This assumes that searching for the uid will actually find the user. This
is not necessarily given by the backend configuration.

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2018-03-14 17:53:07 +01:00
Björn Schiessle 1eb3b565db
add tests
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
2018-03-13 19:09:23 +01:00
Lukas Reschke 4f3ae3e6fd
Adjust tests
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2017-08-04 19:03:32 +02:00