Build a authentication response.
public generate ( SimpleSAML_Configuration $idp, SimpleSAML_Configuration $sp, string $shire, array | null $attributes ) : string | ||
$idp | SimpleSAML_Configuration | Metadata for the IdP the response is sent from. |
$sp | SimpleSAML_Configuration | Metadata for the SP the response is sent to. |
$shire | string | The endpoint on the SP the response is sent to. |
$attributes | array | null | The attributes which should be included in the response. |
return | string | The response. |