@@ -28,6 +28,16 @@ class AuthzRequest implements JsonSerializable
2828 */
2929 public $ userId ;
3030
31+ /**
32+ * @var string
33+ */
34+ public $ schacHomeOrganization ;
35+
36+ /**
37+ * @var string
38+ */
39+ public $ eduPersonPrincipalName ;
40+
3141 /**
3242 * @var string
3343 */
@@ -45,17 +55,23 @@ class AuthzRequest implements JsonSerializable
4555
4656 public static function create (
4757 string $ userId ,
58+ string $ sho ,
59+ string $ eppn ,
4860 string $ continueUrl ,
4961 string $ serviceId ,
5062 string $ issuerId
5163 ) : AuthzRequest {
5264 Assertion::string ($ userId , 'The userId must be a string. ' );
65+ Assertion::string ($ sho , 'The schacHomeOrganization must be a string. ' );
66+ Assertion::string ($ eppn , 'The eduPersonPrincipalName must be a string. ' );
5367 Assertion::string ($ continueUrl , 'The continueUrl must be a string. ' );
5468 Assertion::string ($ serviceId , 'The serviceId must be a string. ' );
5569 Assertion::string ($ issuerId , 'The issuerId must be a string. ' );
5670
5771 $ request = new self ();
5872 $ request ->userId = $ userId ;
73+ $ request ->schacHomeOrganization = $ sho ;
74+ $ request ->eduPersonPrincipalName = $ eppn ;
5975 $ request ->continueUrl = $ continueUrl ;
6076 $ request ->serviceId = $ serviceId ;
6177 $ request ->issuerId = $ issuerId ;
@@ -67,6 +83,8 @@ public function jsonSerialize() : array
6783 {
6884 return [
6985 'user_id ' => $ this ->userId ,
86+ 'sho ' => $ this ->schacHomeOrganization ,
87+ 'eppn ' => $ this ->eduPersonPrincipalName ,
7088 'continue_url ' => $ this ->continueUrl ,
7189 'service_id ' => $ this ->serviceId ,
7290 'issuer_id ' => $ this ->issuerId
0 commit comments