dpvmtdu364462 2015-02-01 17:43
浏览 67
已采纳

什么是oauth以及网站如何实施它

I know the question is Kinda Silly but i want to know what exactly is oauth and how does it work with facebook,twitter etc.

And also if i want to implement it for my website like creating a login from my website button how can i do it

  • 写回答

1条回答 默认 最新

  • douzhi1919 2015-02-01 18:04
    关注

    Definition

    According to Wikipedia:

    OAuth is an open standard to authorization.OAuth provides client applications a 'secure delegated access' to server resources on behalf of a resource owner. It specifies a process for resource owners to authorize third-party access to their server resources without sharing their credentials.

    So OAuth is commonly used as a way for web surfers to log into third party web sites using their Google, Facebook or Twitter accounts.

    Working Example

    Lets say you have a Gmail Account. You decide to sign up for LinkedIn.Adding your friends manually can be sketchy and painful. You might get fed up half-way. So you might be tempted not to create an the LinkedIn account after all.

    LinkedIn got a nice idea and wrote a program to let the computer fetch all the data from your Gmail Account.

    Without an API for exchanging this list of contacts, you may have to comprimise your email account to LinkedIn so here is where OAuth takes charge. If your Gmail supports the OAuth protocol, then LinkedIn can ask you to authorize them to access your GMail list of contacts.

    References :

    1)http://en.wikipedia.org/wiki/OAuth

    2)https://blog.apigee.com/detail/when_to_use_oauth

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 我要一个分身加定位两个功能的安卓app
  • ¥15 基于FOC驱动器,如何实现卡丁车下坡无阻力的遛坡的效果
  • ¥15 IAR程序莫名变量多重定义
  • ¥15 (标签-UDP|关键词-client)
  • ¥15 关于库卡officelite无法与虚拟机通讯的问题
  • ¥15 目标检测项目无法读取视频
  • ¥15 GEO datasets中基因芯片数据仅仅提供了normalized signal如何进行差异分析
  • ¥100 求采集电商背景音乐的方法
  • ¥15 数学建模竞赛求指导帮助
  • ¥15 STM32控制MAX7219问题求解答