nagyv/pyramid_apex — comment on commit 05d295dcc607bd0c15378f7d366d7c8b1423d99f
File:  line 0
By cd34:

This is sort of odd, you have an older version of this as the table should be auth_auth_groups not auth_user_groups which I can't figure out since that was changed in the branch long ago.

Basically, the new design is:

AuthID = identity - this is the main record for the user
AuthUser = different authentication credentials, i.e. google, facebook, twitter. A user has one ID, but, could have multiple credentials allowing them to log in with a number of providers, all referring back to the base AuthID.
AuthGroups = assigned to the ID - whether the person logs in with a local login or Facebook or Google isn't important as it is the identity that should have the permissions.

But the real question is, how did you end up with an older version of the code to make your modifications from. Looking at the network graph, where you split things should have given you the right files, though, you did appear to fork off the main repo, not the branch.

https://github.com/cd34/apex/blob/new_identification_method_conglomeration_to_support_multiple_auth_ids_with_single_id_for_federated_logins_and_potential_openid_endpoint/apex/models.py

is the current models.py - you can see that group is based off AuthID rather than AuthUser.id

I will make these changes to the branch on the right model, but, you've got me extremely confused how you pulled that old code from the branch.