When integrating to a Service Provider like LinkedIn Learning, they use these in addition to the above:
ClaimTypes::GIVEN_NAMEClaimTypes::SURNAME
Currently I do not see a way to add additional Claim Types in the SamlAuth.php trait. I could override the buildSamlResponse method, but it is a monstrous method already.
The current claim types supported are:
ClaimTypes::EMAIL_ADDRESS
ClaimTypes::COMMON_NAME
ClaimTypes::ROLE
When integrating to a Service Provider like LinkedIn Learning, they use these in addition to the above:
ClaimTypes::GIVEN_NAME
ClaimTypes::SURNAME
Currently I do not see a way to add additional Claim Types in the
SamlAuth.php
trait. I could override thebuildSamlResponse
method, but it is a monstrous method already.The idea here is to allow for chaining of this code to add any Claim Type we want: https://github.com/kingstarter/laravel-saml/blob/4b656b817a7bb4e784b07dff20695c9c6118a0dc/src/Http/Traits/SamlAuth.php#L201-L215
Thoughts?