Commit graph

144 commits

Author SHA1 Message Date
Joas Schilling 737c2b7e2b
Add Nextcloud 25 support
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-09-22 13:46:09 +02:00
Arthur Schiwon baed7e1529
5.0.3
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-08-30 16:31:39 +02:00
Arthur Schiwon fae25fa4ab
fix signining in with IdPs other than 1
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-08-24 14:32:57 +02:00
Arthur Schiwon 52ac9efe56
No SAML config chooser on env mode
- in env mode, only one provider is supported
- choosing any provider would trigger env mode mechanis anyway

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-07-28 14:31:35 +02:00
blizzz 988ef8f7da
Merge pull request #595 from nextcloud/dependabot/composer/nextcloud/coding-standard-1.0.0
Bump nextcloud/coding-standard from 0.5.0 to 1.0.0
2022-07-05 12:37:25 +02:00
Max 1a7c7312a4
5.0.2
Signed-off-by: Max <max@nextcloud.com>
2022-06-07 09:14:41 +02:00
blizzz c91a678293
Merge pull request #619 from KoffeinKaio/fix-idpValueZero
fix routes to use 1 as default value for idp
2022-06-01 13:39:25 +02:00
dependabot[bot] b7b402d55d Bump nextcloud/coding-standard from 0.5.0 to 1.0.0
Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.5.0 to 1.0.0.
- [Release notes](https://github.com/nextcloud/coding-standard/releases)
- [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nextcloud/coding-standard/compare/v0.5.0...v1.0.0)

---
updated-dependencies:
- dependency-name: nextcloud/coding-standard
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-30 11:41:54 +02:00
Sascha Markert 24553b466a
replace spaces with tab
Signed-off-by: Sascha Markert <markert@b1-systems.de>
2022-05-24 14:47:42 +02:00
Sascha Markert ecbedfa3d7
fix routes to use 1 as default value for idp
Signed-off-by: Sascha Markert <markert@b1-systems.de>
2022-05-24 14:41:32 +02:00
Arthur Schiwon b35ca53d25
5.0.1
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-05-24 13:23:06 +02:00
Carl Schwan d58d532a68
Merge pull request #614 from nextcloud/fix/mobile-login
Revert "Handle mobile login flow with direct=1"
2022-05-12 20:59:23 +02:00
Carl Schwan 0f5e1ac352 Revert "Handle mobile login flow with direct=1"
This reverts commit 86684d6c54.

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-05-12 14:49:11 +02:00
Carl Schwan 06b6f33159 Stricter check for direct=1 login
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-05-09 13:16:43 +02:00
Joas Schilling 9948cbe96d
Allow 25
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-04-19 11:17:22 +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
Arthur Schiwon 0000691857 do not evaluate SAML cfg every time app is loaded
- it tests only the first configuration, others were not taken into
  account
- the configuration check is also only needed when SAML auth is actually
  happening

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-04-07 20:29:03 +00:00
Carl Schwan c51048b566 Minor fixes
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-04-07 20:29:03 +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 7bdad55dc9 add occ commands for config manipulation
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
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
Carl Schwan 86684d6c54 Handle mobile login flow with direct=1
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-01-25 16:06:57 +00:00
John Molakvoæ 4510f70ff7
cs:fix
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2021-12-10 09:28:16 +01:00
John Molakvoæ 22ccc12038
Update version to 24 from master
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2021-12-10 09:12:39 +01:00
Joas Schilling c36dc6dc84
Update version on master
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-06-29 12:20:15 +02:00
Roeland Jago Douma 4207ca69d7 Bump version
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-05-17 13:45:10 +02:00
blizzz e37fee7f38
Merge pull request #508 from nextcloud/fix/noid/userids-not-sanitized
sanitize and test user id received from IdP, if original does not match
2021-03-01 14:09:38 +01:00
Joas Schilling 508dd752f2
Update version on master
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-02-03 09:55:25 +01:00
Arthur Schiwon a7aabdd71f
introduces a single point of saml attribute interpretations
- solved code duplication on uid mapping attribute determiniation
- a single point for user id normalization
- slightly reduces logic in the Controller

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2021-01-26 14:32:19 +01:00
Roeland Jago Douma 58f717f91d
Bump doctrine types for 21 support
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-01-12 20:41:40 +01:00
Roeland Jago Douma 425ef9c6c6
Bump version
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-01-12 13:20:43 +01:00
Christoph Wurst ababd7baa4
Migrate update.php to migration steps
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-11-30 08:14:58 +01:00
Roeland Jago Douma aa30b13666
v3.3.1
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-10-07 08:56:59 +02:00
Roeland Jago Douma 5c87778134
Fix login flow with SAML
Because of the strict samesite cookies SAML fails with the login flow.
Because the post that comes back is not transfering the proper cookies
to use the same session. Hence the token in use gets lost etc.

Now we store this all (encrypted) in a cookie. So that when we come back
we can restore the proper session.

FAQ:

* Is it elegant?
  Nope!
* Does it work?
  Yes!

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-10-05 15:16:38 +02:00
Arthur Schiwon a662780251
bump version and requirements
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2020-09-07 23:30:52 +02:00
Arthur Schiwon 7c8d94bfc7
bump version to 3.2.0 and drop 18 support
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2020-09-07 15:26:25 +02:00
blizzz 5ac1903982
Merge pull request #438 from Worteks/command-saml-metadata
Add occ command to dump metadata for a given provider
2020-09-04 12:40:44 +02: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 2e8f668830
Ignore the oauth token path in login with the environment variables
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-07-24 15:07:04 +02:00
Roeland Jago Douma 0c494e82cf
Bump version
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-07-10 10:19:21 +02:00
Joas Schilling 5f49b6c004
Move to migrations
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-06-30 21:36:14 +02:00
Joas Schilling a20be42cca
Update version on master
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-05-07 10:05:58 +02:00
Julius Härtl 943acf88a2
Setup Application class using query()
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-03-04 14:46:58 +01:00
Arthur Schiwon b0c36317d7
bump version to 3.0.1
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2020-02-14 14:40:10 +01:00
Roeland Jago Douma 026b60b2ba
Make 19 compatible
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-01-28 19:55:11 +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
Sascha Wiswedel 7d1cc5f64f
added link to portal documentation
Signed-off-by: Sascha Wiswedel <sascha.wiswedel@nextcloud.com>
2019-10-10 14:09:47 +02:00
Arthur Schiwon ed79b2cbe0
drop support for 14 (EOL)
includes version bump

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2019-09-19 16:18:17 +02:00
Arthur Schiwon 7ef2506481
bump server compat
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2019-09-19 15:26:47 +02:00
Roeland Jago Douma 15a262cb24
Update to 2.4.0
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-09-06 11:35:52 +02:00