Android & OAUTH 2.0

前端 未结 1 1064
清酒与你
清酒与你 2021-02-20 15:25

I cannot work this out to save my life!

So, I have a Codeigniter based REST api with an OAUTH 2.0 (draft 23 or something) server for my own auth system (not using Twitte

1条回答
  •  一生所求
    2021-02-20 15:49

    1. No, OAuth 2.0 is old enough to be supported by some good open source libraries. You could e.g. use scribe.

    2. Sorry, I don't know enough about XAuth yet to help you with that.

    3. Yeah, it's really easy using scribe. To support a custom Provider you simply have to extend org.scribe.builder.api.DefaultApi20. As your using the same Draft of OAuth 2.0 as Google does, you can use the implementation for the Google API in Thomas Bruyelle's fork of scribe as a blueprint. This article should get you started for using scribe with Android. You could further check out the Google example from the scribe fork here.

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