Rui Tomé
4adc4b0181
[EC-758] Add environment variable to enforce SSO Policy for all users ( #2428 )
...
* [EC-758] Add environment variable GlobalSettings.Sso.EnforceSsoPolicyForAllUsers to enforce SSO Policy for all users
* [EC-758] Add integration tests
* [EC-758] Add Entities namespace to resolve ambiguous reference
* [EC-758] dotnet format
* [EC-758] Updated integration tests to check for logins with all user types
* [EC-758] Create new TestServer for each test
* [EC-758] Combine unit tests and refactor to use BitAutoData
2022-12-20 13:08:29 +00:00
Justin Baur
7f5f010e1e
Run formatting ( #2230 )
2022-08-29 16:06:55 -04:00
Justin Baur
bae03feffe
Revert filescoped ( #2227 )
...
* Revert "Add git blame entry (#2226 )"
This reverts commit 239286737d15cb84a893703ee5a8b33a2d67ad3d.
* Revert "Turn on file scoped namespaces (#2225 )"
This reverts commit 34fb4cca2aa78deb84d4cbc359992a7c6bba7ea5.
2022-08-29 15:53:48 -04:00
Justin Baur
34fb4cca2a
Turn on file scoped namespaces ( #2225 )
2022-08-29 14:53:16 -04:00
Carlos J. Muentes
14302efa2c
CSA-2 - Require user interaction for SSO redirect ( #1948 )
...
* CSA-2 - adding validation before redirecting for SSO login
* Updating server to use generated and signed JWT for SSO redirect
* Removing erroneous file
* Removing erroneous file
* Updating for PR feedback, adding domain_hint to Login and fixing invalid domain_hint name reference
* Some code styling changes from PR feedback
* Removing unnecessary JSON serialization
* Couple small changes from PR feedback
* Fixing linting errors
* Update formatting in AccountController.cs
* Remove unused dependency
* Add token lifetime to settings
* Use tokenable directly
* Return defined models
* Revert sso proj file changes
* Check expiration validity when validating org
* Show error message with expired token
* Formatting fixes
* Add SsoTokenLifetime to Sso settings
* Fix build errors
* Fix sql warnings
Co-authored-by: Carlos J. Muentes <cmuentes@bitwarden.com>
Co-authored-by: Chad Scharf <3904944+cscharf@users.noreply.github.com>
Co-authored-by: Matt Gibson <mgibson@bitwarden.com>
2022-06-01 12:23:52 -05:00