OpenID: How to best associated Multiple OpenID Accounts to one User?

后端 未结 4 1816
陌清茗
陌清茗 2021-02-05 06:24

I am a newbie in openID. I spend a lot of time thinking what the best-practices are to give the user the choice, to login with various OpenID enabled accounts.

(I have

4条回答
  •  醉梦人生
    2021-02-05 06:44

    have a table in your database with the user accounts, which includes a user id and have a link table, that links an OpenID to an user id.

    like

    table users

    ID NAME

    1 PIET

    2 KEES

    and

    table openid

    OPENID USERID

    http://..... 1

    http://..... 1

    http://..... 2

    http://..... 2

提交回复
热议问题