Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 10.0.0-alpha.2 -- cleanup, twig prep, typehints #216

Merged
merged 58 commits into from
Jun 13, 2024
Merged

Conversation

briskt
Copy link
Contributor

@briskt briskt commented Jun 12, 2024

Added

  • Added an announcement file for local development
  • Added a test feature that logs the html and saves a screenshot on failure

Changed (breaking)

  • Always use the material theme
  • Added PHP typehints to module code

Changed (non-breaking)

  • Moved PHP code out of templates in preparation for conversion to Twig templating
  • Changed the name of the Actions test container to test
  • Include dev dependencies (e.g. behat) in the test image
  • Made the ADMIN_EMAIL variable no longer required
  • Updated files "lifted" from the SimpleSAMLphp library

Removed

  • Removed default theme files
  • Removed xdebug from the local development image
  • Removed old prompt-for-mfa-u2f.php template file
  • Removed duplicate copy of simplewebauthn browser.js file

Fixed

  • Fixed a "not found" error on the simplewebauthn browser.js file, which prevented use of a Webauthn 2sv option at login
  • Fixed failure in hub mode due to a missing dependency (AWS SDK)
  • Fixed failure to run complete migrations. Reverted the migration namespace back to the original (\Sil\SilAuth\migrations).
  • Better error handling for manager "rescue" code request failure

briskt added 30 commits May 24, 2024 17:15
This error was shown in the browser:
```
SimpleSAML\Error\Error: UNHANDLEDEXCEPTION

Backtrace:
1 www/_include.php:20 (SimpleSAML_exception_handler)
0 [builtin] (N/A)
Caused by: TypeError: str_replace(): Argument #2 ($replace) must be of type array|string, float given
Backtrace:
7 lib/SimpleSAML/Locale/Translate.php:308 (str_replace)
6 lib/SimpleSAML/Locale/Translate.php:308 (SimpleSAML\Locale\Translate::t)
5 lib/SimpleSAML/XHTML/Template.php:914 (SimpleSAML\XHTML\Template::t)
4 modules/material/themes/material/expirychecker/about2expire.php:34 (require)
3 lib/SimpleSAML/XHTML/Template.php:560 (SimpleSAML\XHTML\Template::show)
2 modules/expirychecker/www/about2expire.php:63 (require)
1 lib/SimpleSAML/Module.php:266 (SimpleSAML\Module::process)
0 www/module.php:10 (N/A)
```
This error was shown in the browser:
```
SimpleSAML\Error\Error: UNHANDLEDEXCEPTION

Backtrace:
1 www/_include.php:20 (SimpleSAML_exception_handler)
0 [builtin] (N/A)
Caused by: TypeError: str_replace(): Argument #2 ($replace) must be of type array|string, int given
Backtrace:
7 lib/SimpleSAML/Locale/Translate.php:308 (str_replace)
6 lib/SimpleSAML/Locale/Translate.php:308 (SimpleSAML\Locale\Translate::t)
5 lib/SimpleSAML/XHTML/Template.php:914 (SimpleSAML\XHTML\Template::t)
4 modules/material/themes/material/mfa/low-on-backup-codes.php:32 (require)
3 lib/SimpleSAML/XHTML/Template.php:560 (SimpleSAML\XHTML\Template::show)
2 modules/mfa/www/low-on-backup-codes.php:35 (require)
1 lib/SimpleSAML/Module.php:266 (SimpleSAML\Module::process)
0 www/module.php:10 (N/A)
```
fix type errors for two different login scenarios
@briskt briskt requested a review from a team June 12, 2024 07:17
@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

@briskt
Copy link
Contributor Author

briskt commented Jun 12, 2024

Most changes have been reviewed on a feature branch. Recent changes, such as bugs found while testing on the appsdev IdP and staging hub were committed to the develop branch. Reference this diff to see those changes isolated.

@briskt briskt requested a review from a team June 12, 2024 13:05
Copy link
Contributor

@forevermatt forevermatt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved, with very minor (non-blocking) comments or questions. Thanks! 👍

development/idp-local/config/config.php Outdated Show resolved Hide resolved
features/bootstrap/FeatureContext.php Show resolved Hide resolved
modules/mfa/www/prompt-for-mfa.php Outdated Show resolved Hide resolved
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
5.4% Duplication on New Code

See analysis details on SonarCloud

@briskt briskt merged commit b0e8d10 into main Jun 13, 2024
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants