Hello Mr. Freeze, It works now :). Not sure what went wrong last time when I tried with this mapping, it made all null entries in the table.
On Jul 15, 5:09 pm, "mr.freeze" <[email protected]> wrote: > This works for me and creates entries in my db: > ---------- > Model > ---------- > rpx = local_import('rpxauth') > rpxAuth = rpx.RPXAuth(auth) > rpxAuth.embed = True > #rpxAuth.allow_local = True > rpxAuth.api_key = "..." > rpxAuth.realm = "web2pyslices" > rpxAuth.token_url = "http://localhost:8000/rpxauth/default/user/login" > rpxAuth.mappings.Facebook = dict(identifier="identifier", > username="preferredUsername", > email="email", > first_name="givenName", > last_name="familyName") > > ------------ > Controller > ------------ > def user(): > return dict(form=rpxAuth()) > > Is the email address different for both the Google and Facebook users > you are testing? > > On Jul 15, 4:49 am, Narendran <[email protected]> wrote: > > > > > Hi Massimo, > > I have done that. And Facebook login does work well. > > > But I also want an entry in my auth table for each registered user. > > This, I assume happens only if you have mappings like these in > > rpxauth.__init__. Right now, I see entries created in the table for a > > Google user, but not a Facebook user. This is the content in > > rpxauth.py corresponding to Google and Yahoo (I tried copying Google's > > mappings for Facebook, but it just creates null entries in the table): > > self.mappings.Google= dict(identifier="identifier", > > username="preferredUsername", > > email="email", > > first_name="givenName", > > last_name="familyName") > > > self.mappings.Yahoo = dict(identifier="identifier", > > username="preferredUsername", > > email="email", > > first_name="formatted", > > last_name="formatted") > > > On Jul 15, 2:41 pm, mdipierro <[email protected]> wrote: > > > > I ma be mistaken but rpxauth outsources autentication to rpx > > > (nowhttp://www.janrain.com/) and they do support facebook. I am not sure > > > there is any need to modify the code, just add "facebook" to list of > > > authentication methods you wish to use. > > > > On 15 Lug, 04:32, Narendran <[email protected]> wrote: > > > > > Hi, > > > > Has anyone created mapping for Facebook on rpxauth? If so, please do > > > > share. (I see mappings for Yahoo and Google already in the version > > > > I've downloaded.) > > > > > -- > > > > Thanks > > > > Narendran

