Skip to content

Add support for SAML2 authentication#1386

Merged
zackgalbreath merged 3 commits into
masterfrom
saml
May 10, 2023
Merged

Add support for SAML2 authentication#1386
zackgalbreath merged 3 commits into
masterfrom
saml

Conversation

@zackgalbreath
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Member

@josephsnyder josephsnyder left a comment

Choose a reason for hiding this comment

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

Everything looks solid. The Docker-compose system has no problem with the new artisan packages, but I can't quite test the saml2_tenant creation.

The only non-blocking nitpick would be that some of the functions still put the return type in the doc comment instead of in the function definition while others do not:

  • saml2Login in LoginController.php
  • create in RegisterController.php
  • shouldDiscoverEvents in EventServiceProvider.php

Copy link
Copy Markdown
Collaborator

@williamjallen williamjallen left a comment

Choose a reason for hiding this comment

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

Overall, code looks decent. A few minor nitpicks noted below and then I think it should be ready to go.

Comment thread app/Http/Controllers/Auth/LoginController.php Outdated
Comment thread phpstan.neon
Comment thread composer.json
Copy link
Copy Markdown
Collaborator

@williamjallen williamjallen left a comment

Choose a reason for hiding this comment

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

Changes seem reasonable, assuming tests pass

This commit also replaces the table layout with a bootstrap grid on
login.blade.php. This was necessary because you can only have one form
per table.

As part of this commit we now install the following composer packages:
  * phpstan/phpstan-mockery
  * phpstan/extension-installer

phpstan-mockery prevents PHPStan from complaining about our use of mocks in tests.

extension-installer makes it so we no longer have to explicitly list our
PHPStan extensions in phpstan.neon.
This also contains a very rudimentary table of contents for CDash's markdown
documentation. I expect this to be improved, expanded, and better organized
in the not-too-distant future, but at the moment having links to our existing
docs is a step in the right direction.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants