Skip to content

Commit

Permalink
Merge pull request #10 from darynmitchell/signedin-accessors-per-readme
Browse files Browse the repository at this point in the history
Add SignedIn event accessors, to match docs
  • Loading branch information
breart authored Mar 30, 2021
2 parents cb8c4b7 + d6523b1 commit af4de5b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/Events/SignedIn.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,24 @@ public function __construct(Saml2User $user, Auth $auth)
$this->user = $user;
$this->auth = $auth;
}

/**
* Get the authentication handler for a SAML sign in attempt
*
* @return Auth The authentication handler for the SignedIn event
*/
public function getAuth(): Auth
{
return $this->auth;
}

/**
* Get the user represented in the SAML sign in attempt
*
* @return Saml2User The user for the SignedIn event
*/
public function getSaml2User(): Saml2User
{
return $this->user;
}
}

0 comments on commit af4de5b

Please sign in to comment.