@@ -24,9 +24,10 @@ class OpenIDConnectLoginGovClient extends OpenIDConnectClientBase {
/**
* A list of data fields available on login.gov.
*
* @var array
*/
protectedstatic$userinfo_fields=[
protectedstatic$userinfoFields=[
'all_emails'=>'All emails',
'given_name'=>'First name',
'family_name'=>'Last name',
...
...
@@ -42,9 +43,10 @@ class OpenIDConnectLoginGovClient extends OpenIDConnectClientBase {
/**
* A list of fields we always request from the site.
*
* @var array
*/
protectedstatic$always_fetch_fields=[
protectedstatic$alwaysFetchFields=[
'sub'=>'UUID',
'email'=>'Email',
'ial'=>'Identity Assurance Level',
...
...
@@ -53,9 +55,10 @@ class OpenIDConnectLoginGovClient extends OpenIDConnectClientBase {
/**
* A mapping of userinfo fields to the scopes required to receive them.
*
* @var array
*/
protectedstatic$field_to_scope_map=[
protectedstatic$fieldToScopeMap=[
'sub'=>'openid',
'email'=>'email',
'all_emails'=>'all_emails',
...
...
@@ -161,7 +164,7 @@ class OpenIDConnectLoginGovClient extends OpenIDConnectClientBase {
'#title'=>$this->t('User fields'),
'#type'=>'select',
'#multiple'=>TRUE,
'#options'=>static::$userinfo_fields,
'#options'=>static::$userinfoFields,
'#description'=>$this->t('List of fields to fetch, which will translate to the required scopes. Some fields require IAL/2 Authentication Assurance Level. See the @login_gov_documentation for more details. The Email and UUID (sub) fields are always fetched.',['@login_gov_documentation'=>Link::fromTextAndUrl($this->t('Login.gov documentation'),Url::fromUri('https://developers.login.gov/attributes/'))->toString()]),