Commit graph

79 commits

Author SHA1 Message Date
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
dependabot-preview[bot] 08dc406a13
Bump behat/behat from 3.8.0 to 3.8.1 in /tests/integration
Bumps [behat/behat](https://github.com/Behat/Behat) from 3.8.0 to 3.8.1.
- [Release notes](https://github.com/Behat/Behat/releases)
- [Changelog](https://github.com/Behat/Behat/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Behat/Behat/compare/v3.8.0...v3.8.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-14 02:13:10 +00:00
dependabot-preview[bot] 50a53b1b78
Bump behat/behat from 3.7.0 to 3.8.0 in /tests/integration
Bumps [behat/behat](https://github.com/Behat/Behat) from 3.7.0 to 3.8.0.
- [Release notes](https://github.com/Behat/Behat/releases)
- [Changelog](https://github.com/Behat/Behat/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Behat/Behat/compare/v3.7.0...v3.8.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-11-07 02:40:56 +00: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
Arthur Schiwon ebd86d974e
adjust default redirect target to 20's
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2020-09-07 23:34:18 +02:00
dependabot-preview[bot] 3697ef108a
Bump guzzlehttp/guzzle from 6.5.5 to 7.0.1 in /tests/integration
Bumps [guzzlehttp/guzzle](https://github.com/guzzle/guzzle) from 6.5.5 to 7.0.1.
- [Release notes](https://github.com/guzzle/guzzle/releases)
- [Changelog](https://github.com/guzzle/guzzle/blob/master/CHANGELOG.md)
- [Commits](https://github.com/guzzle/guzzle/compare/6.5.5...7.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-04 10:43:07 +00: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
dependabot-preview[bot] feedd41158
Merge pull request #429 from nextcloud/dependabot/composer/tests/integration/behat/behat-3.7.0 2020-06-22 11:16:38 +00:00
dependabot-preview[bot] 659b3cc96d
Bump guzzlehttp/guzzle from 6.5.4 to 6.5.5 in /tests/integration
Bumps [guzzlehttp/guzzle](https://github.com/guzzle/guzzle) from 6.5.4 to 6.5.5.
- [Release notes](https://github.com/guzzle/guzzle/releases)
- [Changelog](https://github.com/guzzle/guzzle/blob/6.5.5/CHANGELOG.md)
- [Commits](https://github.com/guzzle/guzzle/compare/6.5.4...6.5.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-21 01:19:08 +00:00
dependabot-preview[bot] 393ee1fe26
Bump behat/behat from 3.6.1 to 3.7.0 in /tests/integration
Bumps [behat/behat](https://github.com/Behat/Behat) from 3.6.1 to 3.7.0.
- [Release notes](https://github.com/Behat/Behat/releases)
- [Changelog](https://github.com/Behat/Behat/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Behat/Behat/compare/v3.6.1...v3.7.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-08 11:48:58 +00:00
dependabot-preview[bot] 41f95fd92a
Bump guzzlehttp/guzzle from 6.5.3 to 6.5.4 in /tests/integration
Bumps [guzzlehttp/guzzle](https://github.com/guzzle/guzzle) from 6.5.3 to 6.5.4.
- [Release notes](https://github.com/guzzle/guzzle/releases)
- [Changelog](https://github.com/guzzle/guzzle/blob/6.5.4/CHANGELOG.md)
- [Commits](https://github.com/guzzle/guzzle/compare/6.5.3...6.5.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-31 01:23:09 +00:00
dependabot-preview[bot] 6c46e1789f
Bump guzzlehttp/guzzle from 6.5.2 to 6.5.3 in /tests/integration
Bumps [guzzlehttp/guzzle](https://github.com/guzzle/guzzle) from 6.5.2 to 6.5.3.
- [Release notes](https://github.com/guzzle/guzzle/releases)
- [Changelog](https://github.com/guzzle/guzzle/blob/6.5.3/CHANGELOG.md)
- [Commits](https://github.com/guzzle/guzzle/compare/6.5.2...6.5.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-19 01:21:27 +00: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
dependabot-preview[bot] a8e02d00eb
Bump behat/behat from 3.5.0 to 3.6.1 in /tests/integration
Bumps [behat/behat](https://github.com/Behat/Behat) from 3.5.0 to 3.6.1.
- [Release notes](https://github.com/Behat/Behat/releases)
- [Changelog](https://github.com/Behat/Behat/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Behat/Behat/compare/v3.5.0...v3.6.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-10 13:03:18 +00:00
dependabot-preview[bot] 95744f1dee
Bump guzzlehttp/guzzle from 6.4.1 to 6.5.2 in /tests/integration
Bumps [guzzlehttp/guzzle](https://github.com/guzzle/guzzle) from 6.4.1 to 6.5.2.
- [Release notes](https://github.com/guzzle/guzzle/releases)
- [Changelog](https://github.com/guzzle/guzzle/blob/master/CHANGELOG.md)
- [Commits](https://github.com/guzzle/guzzle/compare/6.4.1...6.5.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-16 10:30:09 +00: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
dependabot-preview[bot] 3fbf9d32c5
Bump guzzlehttp/guzzle from 6.3.3 to 6.4.1 in /tests/integration
Bumps [guzzlehttp/guzzle](https://github.com/guzzle/guzzle) from 6.3.3 to 6.4.1.
- [Release notes](https://github.com/guzzle/guzzle/releases)
- [Changelog](https://github.com/guzzle/guzzle/blob/master/CHANGELOG.md)
- [Commits](https://github.com/guzzle/guzzle/compare/6.3.3...6.4.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-21 23:04:34 +00:00
dependabot-preview[bot] 535e00dc85
Bump behat/behat from 3.3.0 to 3.5.0 in /tests/integration
Bumps [behat/behat](https://github.com/Behat/Behat) from 3.3.0 to 3.5.0.
- [Release notes](https://github.com/Behat/Behat/releases)
- [Changelog](https://github.com/Behat/Behat/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Behat/Behat/compare/v3.3.0...v3.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-18 17:52:34 +00: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
Arthur Schiwon 9ac5588544
only update Guzzle
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2019-04-11 12:53:50 +02:00
Arthur Schiwon 2675f3f96f
last fix for integration tests
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2019-04-11 11:57:30 +02:00
Arthur Schiwon 67f680bc7c
style
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2019-04-10 12:21:20 +02:00
Arthur Schiwon bd1073c07d
fix using rh-php7x collection
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2019-04-10 11:50:52 +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 f04ed98b21
fix integration tests
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
2018-08-03 12:43:20 +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 a5f07ab78f
fix integration tests to use php7
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
2018-03-14 17:02:49 +01:00