I had to change the hook system a little bit and added Sreg client side support.
The patch below includes #441034: Can't delete mappings that are defined in code as well.
The hook change:
openid_cp_field_openid_client_ax() -> openid_cp_field_openid_client_sreg()
Comments
Comment #1
aron novakRelated patches with more verbose explanation: #444164: Make client SREG work with OpenID stack again and #444204: Hook change because of client side SReg support
Comment #2
aron novakI added more robust existing-profile searching and did some refactoring to make the code simplier.
I tested it a little bit, I could map some of the fields, but not all of them, i need to make sure that the patch below really works sane.
Comment #3
aron novakin #2 non-CCK fields weren't filled.
Comment #4
aron novakin #3, SReg fields weren"t handled properly.
Also really tiny coding style issues were fixed.
Comment #5
alex_b commented#4 does not apply anymore after recent commits (#441034: Can't delete mappings that are defined in code ? )
Comment #6
aron novakRe-rolled. Basically it was all because it included #441034.
Comment #7
alex_b commentedThis looks funny. Can you explain what the convention around $type .'_sreg' is?
(edit: i just see that this has been introduced with an earlier patch)
Comment #8
aron novak#7:
Not related to this patch, but agree. , see #501896: Change signature of openid_cp_field_get_mapping()
Comment #9
aron novakHere is the patch without ugly the '_sreg' style.
The '_sreg' naming was used before, but because it's all about client side sreg integration, it's not unrelated to the patch's scope.
Comment #10
alex_b commentedJust did a quick test. I mix SREG and AX (SREG full name maps to node title, AX first, last name and bio map to 2 cck fields and the node's body) -> no profile is being created on first time log in. Need to do more digging. I suspect there is a problem with the set up.
Comment #11
alex_b commented#10 was my fault: didn't configure the provider to expose SREG data - can't use SREG on the relying party then obviously!
Comment #12
alex_b commentedCommitted. Thank you!