OAuth Authentication Iphone

后端 未结 2 1800
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-24 09:22

I am doing an iPhone app which requires OAuth 2.0 protocol to be implemented for the login of the user to a particular website. I have the client id and client secret whic

相关标签:
2条回答
  • 2020-12-24 09:41

    You can find a good tutorial on OAuth Tutorial. This tutorial is a for MAC applications and uses Google OAuthCustomer library. OAuthCustomer related readings and source codes can be find within the below URLs

    1. Google OAuthCustomer
    2. Sample Application

    Make sure to remove non ARC stuff from the OAuthCustomer Library files for iOS applications

    0 讨论(0)
  • 2020-12-24 09:50

    OAuth spec and documentations

    • OAuth 1.0 protocol: http://tools.ietf.org/html/rfc5849
    • OAuth 2.0 protocol: http://tools.ietf.org/html/rfc6749
    • http://oauth.net/documentation/getting-started/
    • http://hueniverse.com/oauth/

    SDKs for OAuth on iOS

    • YToolkit (OAuth 1.0 & 2.0)
      • Source on GitHub
    • OAuthConsumer (OAuth 2.0)
      • Source on Google Code
      • Wiki
    • LROAuth2Client (OAuth 2.0)
      • Source on GitHub
      • Simple document
      • Demo project
    • MPOAuthConnection (OAuth 1.0)
      • Source on GitHub
      • Wiki

    (Speaking of "a particular website", does it have official or third-party SDK for iOS? If yes then you don't need to implement OAuth authorization yourself.)

    0 讨论(0)
提交回复
热议问题