You are here

function openid_connect_claims_options in OpenID Connect / OAuth client 7

Returns OpenID Connect standard Claims as a Form API options array.

1 call to openid_connect_claims_options()
openid_connect_admin_form in includes/openid_connect.admin.inc
Form builder: Main administrative form.

File

./openid_connect.module, line 601
A pluggable client implementation for the OpenID Connect protocol.

Code

function openid_connect_claims_options() {
  $options = array();
  foreach (openid_connect_claims() as $claim_name => $claim) {
    $options[$claim['scope']][$claim_name] = $claim_name;
  }
  return $options;
}