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

Commit af4de5b

Browse files
author
Artem Brezhnev
authored
Merge pull request #10 from darynmitchell/signedin-accessors-per-readme
Add SignedIn event accessors, to match docs
2 parents cb8c4b7 + d6523b1 commit af4de5b

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/Events/SignedIn.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,24 @@ public function __construct(Saml2User $user, Auth $auth)
3737
$this->user = $user;
3838
$this->auth = $auth;
3939
}
40+
41+
/**
42+
* Get the authentication handler for a SAML sign in attempt
43+
*
44+
* @return Auth The authentication handler for the SignedIn event
45+
*/
46+
public function getAuth(): Auth
47+
{
48+
return $this->auth;
49+
}
50+
51+
/**
52+
* Get the user represented in the SAML sign in attempt
53+
*
54+
* @return Saml2User The user for the SignedIn event
55+
*/
56+
public function getSaml2User(): Saml2User
57+
{
58+
return $this->user;
59+
}
4060
}

0 commit comments

Comments
 (0)