开发者

How can I handle authentication in android for a remote website?

开发者 https://www.devze.com 2023-02-02 08:20 出处:网络
I know I\'m going to need authentication within an Android app I\'m working on that will control shoutcast/icecast streams through an API.

I know I'm going to need authentication within an Android app I'm working on that will control shoutcast/icecast streams through an API.

What would you recommend?

Would it be easier to store the authentication within the app itself while a session is going on or rather have the us开发者_运维问答er login each time?


Whenever they start the app authenticate them and return a cookie from the server. With every request they make send the cookie and make sure they are still authenticated. Set the expiration on the cookie to whenever you desire.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号