简体   繁体   English

如何为Android应用程序实现OAuth2和PHP Rest Api

[英]how to implement OAuth2 and PHP Rest Api for android application

i found many resource from google, but at the end i am not able to decide in what manner i can create and use PHP REST API that uses OAuth2 for authentication where the request is only initiated and consume by Android application.. 我从Google找到了很多资源,但是最后我无法决定我可以以哪种方式创建和使用PHP REST API,该API使用OAuth2进行身份验证,其中请求仅由Android应用程序发起和使用。

as i am really new to OAuth and Android, i am not getting how to create an Android app that uses OAuth2 authentication for authorization with PHP Rest API.. 由于我真的是OAuth和Android的新手,所以我不了解如何创建使用OAuth2身份验证和PHP Rest API进行授权的Android应用。

i just want to know from where to start and what may be the possible first step for doing that. 我只是想知道从哪里开始,以及这样做的第一步可能是什么。

i don't want the full code , but at least the steps involved to get the things working... please help.. 我不想要完整的代码,但是至少需要一些步骤才能正常工作...请帮助。

i have enough confidence that i can create Android app and PHP Rest api and will try my best to follow and learn the steps required... 我有足够的信心可以创建Android应用程序和PHP Rest api,并会尽力遵循并学习所需的步骤...

i know developing android app and all about php too.. but new to OAuth 2.0 我知道开发android应用程序以及有关php的所有信息。

我之前经历过同样的问题,并将其设为我要在Android中处理OAuth2的库https://github.com/AliAbozaid/OAuth2Library

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM