Commit graph

30 commits

Author SHA1 Message Date
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
Lukas Reschke 5a4d327c0a
Perform logic in ACS
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2017-08-04 16:55:01 +02:00
Lukas Reschke bc98b466bd
Set last login after successful login operation
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2017-08-04 12:54:59 +02:00
Allan Nordhøy 9cd8a36cf1 Fix spelling
XML, exists
admintest.php XML / exists
advanced_settings_example.php XML
removed "is" exists

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2017-07-18 19:42:35 +02:00
Lukas Reschke 1a1a11c8e9
Add support for mapping attributes
This adds support for mapping attributes for full name and email

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2017-02-16 15:23:46 +01:00
Lukas Reschke 29c60c3869
Add better error handling
1. Enable `debug` mode if debug mode is enabled in config.php
2. Log errors to the log file

Also I fixed the unit tests that broke with https://github.com/nextcloud/user_saml/pull/81

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2017-02-03 12:30:10 +01:00
Lukas Reschke 9980a80100
Add integration tests
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2017-01-04 22:47:19 +01:00