diff --git a/oauth_common.admin.inc b/oauth_common.admin.inc index 0215c27..fc77a6d 100644 --- a/oauth_common.admin.inc +++ b/oauth_common.admin.inc @@ -270,6 +270,13 @@ function oauth_common_edit_form_context(&$form_state, $context) { '#default_value' => !empty($context->authorization_options['disable_auth_level_selection']), ); + $form['authorization_options']['automatic_authorization'] = array( + '#type' => 'checkbox', + '#title' => t('Automatically authorize'), + '#description' => t('If this is checked the user will not be prompted with the above form and will instead be immediately authorized to the service upon authenticating with Drupal.'), + '#default_value' => !empty($context->authorization_options['automatic_authorization']), + ); + $form['authorization_levels'] = array( '#type' => 'fieldset', '#title' => t('Authorization levels'),