public function OpenIdConnectClaimsTest::defaultClaimsProvider in OpenID Connect / OAuth client 8
Same name and namespace in other branches
- 2.x tests/src/Unit/OpenIdConnectClaimsTest.php \Drupal\Tests\openid_connect\Unit\OpenIdConnectClaimsTest::defaultClaimsProvider()
Get the expected default claims.
Return value
array The default key, scope, type for the claims.
File
- tests/
src/ Unit/ OpenIdConnectClaimsTest.php, line 223
Class
- OpenIdConnectClaimsTest
- Test the OpenIdConnectClaims class.
Namespace
Drupal\Tests\openid_connect\UnitCode
public function defaultClaimsProvider() : array {
return [
[
'name',
'profile',
'string',
],
[
'given_name',
'profile',
'string',
],
[
'family_name',
'profile',
'string',
],
[
'middle_name',
'profile',
'string',
],
[
'nickname',
'profile',
'string',
],
[
'preferred_username',
'profile',
'string',
],
[
'profile',
'profile',
'string',
],
[
'picture',
'profile',
'string',
],
[
'website',
'profile',
'string',
],
[
'email',
'email',
'string',
],
[
'email_verified',
'email',
'boolean',
],
[
'gender',
'profile',
'string',
],
[
'birthdate',
'profile',
'string',
],
[
'zoneinfo',
'profile',
'string',
],
[
'locale',
'profile',
'string',
],
[
'phone_number',
'phone',
'string',
],
[
'phone_number_verified',
'phone',
'boolean',
],
[
'address',
'address',
'json',
],
[
'updated_at',
'profile',
'number',
],
];
}