0

I have a simple multisite setup in Drupal 8. I installed the CAS module and verified that at least one user logged in successfully using our university's CAS server.

I can see the user at /admin/people, but I cannot see his entry in the database. I looked in the tables users, users_data, and users_field_data, and all I can see is the admin user (me).

Where are the users located in the database?

I need to know for a custom module I am developing. FWIW I do have "Auto Register Users" enabled in the module configuration.

1
  • Haven't figured it out yet, but you can use User::load($user_id) to load a user entity, and it works with CAS users just fine. Commented Jun 23, 2017 at 16:46

1 Answer 1

1
+50

For D8, CAS requires External Authentication module.

  • External Authentication maintains a db table called authmap.
  • CAS maintains a table named cas_login_data.

I suspect the data you're looking for is in one of those tables.

2
  • Looks like it's in authmap! How does User::load($uid) know to load from authmap though? Commented Aug 3, 2017 at 18:53
  • 1
    I looked at both modules twice, and couldn't figure it out for the life of me. CAS is definitely leveraging externalauth events to access and alter the data as a user is registered, but I couldn't find the start of the chain. Couldn't find how externalauth hooked into core mechanisms. Sorry ¯\_(ツ)_/¯
    – daggerhart
    Commented Aug 8, 2017 at 18:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.