Skip to content
This repository was archived by the owner on Nov 14, 2025. It is now read-only.

Conversation

@darynmitchell
Copy link
Contributor

The library readme gives code examples of handling authentication events,
including $event->getAuth() and $event->getSame2User().

Before this commit, that example code will fail because those accessors don't exist.
This commit adds those accessors to match the readme code example.

The [library readme](https://github.com/24Slides/laravel-saml2/blob/master/README.md)
gives code examples of handling authentication events,
including `$event->getAuth()` and
`$event->getSame2User()`.

Before this commit, that example code will fail because those
accessors don't exist. This commit adds those accessors
to match the readme code example.
public function getSaml2User(): Saml2User
{
$this->user = $user;
$this->auth = $auth;

Choose a reason for hiding this comment

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

Why is it here? Typo?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, sure is! 😞
Just noticed that after looking at the PR quality report.

@darynmitchell
Copy link
Contributor Author

Thanks for the review @Vinimaks.

@brezzhnev anything else needed before being able to merge?

@breart breart merged commit af4de5b into 24Slides:master Mar 30, 2021
@breart
Copy link
Contributor

breart commented Mar 30, 2021

It's merged now. Thanks for you contribution :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants