Commit Graph

41 Commits

Author SHA1 Message Date
Arthur Schiwon 676043b50a
fix fetching meta data with IdP id 1
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-09-21 14:55:29 +02:00
Arthur Schiwon 14489518d7
fixes testing meta data before applying settings
- when a setting is changed() fetching the meta data is run first,
  before storing the value
- it may appear that a breaking change is good, or
- vice versa that a, actual fixing change does not have effect

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-06-01 14:00:53 +02:00
Daniel Calviño Sánchez 7e2bcefac5 Import jstz.min.js from jstimezonedetect 1.0.7
In Nextcloud 22 jstimezonedetect was removed from the server bundle
(https://github.com/nextcloud/server/pull/25850), so now each app that
uses it needs to ship its own copy. For simplicity, as the app does not
currently use webpack or NPM, the minified file was just added to
"js/vendor".

"jstz.min.js" was copied from
ddc9e04034/dist/jstz.min.js
(which is the same as the one included in
https://registry.npmjs.org/jstimezonedetect/-/jstimezonedetect-1.0.7.tgz).

jstimezonedetect is licenced under the MIT licence.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2022-04-11 10:20:50 +00:00
Arthur Schiwon e514fed6b2 do not sort sorted provider ids
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-04-07 20:29:04 +00: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
Arthur Schiwon 4c97efc51b fix reading and updated name-id-format selection
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-04-07 20:29:04 +00:00
Arthur Schiwon 6548abb0f9 makes sloWebServerDecode IdP-sensitive as it should be
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2022-04-07 20:29:04 +00:00
Carl Schwan c51048b566 Minor fixes
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
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
Arthur Schiwon 9d85a88d4d
fetch metadata for the current configuration
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
2020-11-05 22:27:31 +01: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
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 a27f7a04a8
fix select idp combobox so that it also works with chromium
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
2018-11-22 15:49:48 +01:00
Björn Schiessle bca6a01229
remove leading and trailing white space from settings
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
2018-11-14 13:23:21 +01:00
Björn Schiessle ece9bfd9d9
don't pre-select a provider
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
2018-11-09 14:52:03 +01:00
Björn Schiessle fadb3a1e4a
add a combobox instead of buttons to select the login method if more then 4 different IDPs are configured
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
2018-11-09 14:46:38 +01:00
Björn Schiessle 5c07cc8f4e
add reset button
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
2018-08-14 10:12:45 +02:00
Julius Härtl 0aa53413a6
Update XML download button to current idp
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2018-08-03 12:43:19 +02:00
Julius Härtl da69ddd5e3
Fix missing config values when switching idp
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2018-08-03 12:43:19 +02:00
Julius Härtl ba2e04f7b8
Fix emtpy ui on new instances
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2018-08-03 12:42:09 +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 1b4b4ee188
Add controller method to delete all idp config keys
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2018-08-03 12:42:08 +02:00
Julius Härtl 8c3a4b83e4
Add global settings that are valid for all identity providers
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2018-08-03 12:42:08 +02:00
Julius Härtl ee5308382b
Allow to configure multiple SAML providers
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2018-08-03 12:42:06 +02:00
Lukas Reschke 4bbeb4709b
Only run if no type is defined
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2017-09-18 11:26:25 +02:00
Lukas Reschke 6ac3ab47ca
Use callback
Otherwise the page is already reloaded while the appsettings are not yet stored.

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2017-09-18 11:20:44 +02:00
Lukas Reschke 00c87f4f81
Hide attribute mapping until a type is selected
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2017-09-18 11:15:14 +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 3239c861e8
Make the JS work with sudo mode
Previously the JS reloaded the page or gave the user no indication that a password confirmation was required. Thus not saving the changes.

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2017-01-09 13:06:41 +01:00
Lukas Reschke 314ae475f6
Add support for environment variable login 2016-11-14 13:47:30 +01:00
Lukas Reschke 638e5f2c41
Handle redirect in PHP and not in JS
Since Nextcloud 10 we have a proper login endpoint that we can match on
2016-09-26 21:40:59 +02:00
Lukas Reschke 9b97c7350b
Remove unused code
This is now also part of core

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-09-26 21:24:44 +02:00
Roeland Jago Douma d538a41238
Slide in/out extra options 2016-08-09 20:35:26 +02:00
Lukas Reschke 1160b2c874
Add hint whether settings may work
Fixes https://github.com/nextcloud/user_saml/issues/14
2016-07-05 11:00:02 +02:00
Morris Jobke 96708c6562
Replace tab based design with a scrollable design 2016-06-30 16:41:12 +02:00
Lukas Reschke 1abff7050e
Add workaround for stable9 non-stable entry URL 2016-06-30 00:31:11 +02:00
Lukas Reschke f734958836
Add possibility to enforce local user account
Fixes https://github.com/nextcloud/user_saml/issues/12
Fixes https://github.com/nextcloud/user_saml/issues/5
2016-06-29 20:34:10 +02:00
Lukas Reschke 84c1547c85
Add application specific passwords
Fixes https://github.com/nextcloud/user_saml/issues/1
2016-06-29 18:50:02 +02:00
Lukas Reschke 99bbde20dc
Add mapping editor
Fixes https://github.com/nextcloud/user_saml/issues/4
2016-06-29 10:25:09 +02:00
Lukas Reschke ada6b6ebc8
Initial import 2016-06-29 00:04:23 +02:00