culauth_block - Implementation of hook_block() - provides a block with a button

  • If you are not logged in, the button allows you to authorize with CUWebAuth
  • If you are authenticated, an you do not have an account, the button allows you to create an account and log in
  • If you are authenticated and have an account, the button allows you to log in - by passing the Drupal password form.
  • There is also a link to the standard Drupal login dialog.
  • This block is configured buy the site administrator to only show up in the content area of a special login page.

culauth_form_alter - Implementation of hook_form_alter() - alters the standard Drupal login dialogs

  • If the user was orginally authorized by CUWebAuth, make sure they still are authorized
  • Adds a validator to the dialog - tells Drupal culauth created user and
  • Also makes sure the user can't change their user name (set to netID when account was created).
     

culauth_user - Implementation of hook_user() - acts when a user is created

  • adds email address from LDAP
  • registers culauth as the

culauth_cu_authenticate - This authentication method redirects with drupal_goto to a .php file in a CUWebAuth protected directory. The .php file sets cookies indicating that the user has authenticated, then redirects back to the special login page.

  • No labels