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
Björn Schiessle
1eb3b565db
add tests
...
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
2018-03-13 19:09:23 +01:00
Lukas Reschke
91956e48f9
Use URL also available under Nc12
...
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2017-08-18 14:59:28 +02:00
Lukas Reschke
f528e70df8
Accept text/html
...
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2017-08-18 14:08:01 +02:00
Lukas Reschke
940bcd30a3
Redirect users to previous page
...
This change ensures that users will be sent to the previous page.
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2017-08-18 13:58:03 +02:00
Lukas Reschke
4f3ae3e6fd
Adjust tests
...
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2017-08-04 19:03:32 +02:00
Lukas Reschke
a1986b46b0
Also update timestamp for environment variable auth
...
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2017-08-04 18:19:34 +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
Lukas Reschke
d187271f81
Add test for ensuring keeping of displayname
...
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2017-07-31 16:28:18 +02:00
Lukas Reschke
ce8b1f3dc0
Revert "Add test for keeping display name after login"
2017-07-31 09:51:25 +02:00
Lukas Reschke
8205f4a4d6
Add test for keeping display name after login
...
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2017-07-31 09:34:19 +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
dd4ebe6e3d
Add integration test for Environment Variable
...
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2017-01-19 01:46:26 +01:00
Lukas Reschke
fb56b76710
Enable strict mode
...
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2017-01-12 22:10:57 +01:00
Lukas Reschke
9980a80100
Add integration tests
...
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2017-01-04 22:47:19 +01:00
Joas Schilling
a0662caf61
Do not use deprecated class anymore
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2016-12-14 11:45:50 +01:00
Lukas Reschke
2e4909b90a
Basic test file for user backend
...
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-11-14 14:28:25 +01:00
Lukas Reschke
f457134f28
Test for case with no matching UID mapping
...
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-11-14 14:23:01 +01:00
Lukas Reschke
4930dbc397
Add autoprovisioning
...
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-11-14 14:20:54 +01:00
Lukas Reschke
59a7b8b50e
Add tests for routes.php
...
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-11-14 14:18:59 +01:00
Lukas Reschke
e92a40fee7
Remove clover file
...
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-11-14 14:06:05 +01:00
Lukas Reschke
59fc3d0fc9
ADFS lower-case support
2016-11-14 14:02:54 +01:00
Lukas Reschke
314ae475f6
Add support for environment variable login
2016-11-14 13:47:30 +01:00
Lukas Reschke
e8d38fbd39
Add tests for Application class
2016-09-30 14:38:57 +02:00
Lukas Reschke
da7afd3828
Add tests for "Admin"
...
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-09-30 14:19:12 +02:00
Lukas Reschke
5f6ab59075
Add test for OnlyLoggedInMiddleware
...
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-09-30 13:52:02 +02:00
Lukas Reschke
5ca41b2b2b
Add tests
...
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-09-26 21:24:44 +02:00