简体   繁体   English

如何对私有照片集使用Flickr Oauth身份验证?

[英]How to use Flickr Oauth authentication for Private photosets?

I am curious if it is possible to authenticate a web app, only once, to access your private photosets through Flickr? 我很好奇是否可以对Web应用程序进行一次身份验证才能通过Flickr访问您的私人照片集吗?

Currently any of the tutorials or ideas I have had/seen use the generic randomly generated tokens that Oauth provides. 目前,我曾经/见过的任何教程或想法都使用Oauth提供的通用随机生成的令牌。 Thus meaning, I have to have the user of the web app click to authorize each and every time they want to view a specific photoset. 因此,我必须让Web应用程序的用户单击以授权他们每次查看特定照片集的权限。

How do I make it so that I can use my web app to access my own Private photosets and validate only once, so that other users dont have to? 如何做到这一点,以便可以使用我的Web应用程序访问自己的私人照片集并仅进行一次验证,而其他用户则不必这样做?

Thanks in advance. 提前致谢。

Once a user authorizes you access to their account, flickr will send back to you an OAuth token. 用户授权您访问其帐户后,flickr将向您发送OAuth令牌。 OAuth tokens are long lived, you can use them repeatedly until the user revokes/removes the authorization. OAuth令牌的有效期很长,您可以重复使用它们,直到用户撤销/删除授权为止。 Save them in your database and associate it the user. 将它们保存在数据库中并与用户相关联。 Note: OAuth token tokens are unique to application (domain/realm) + user. 注意:OAuth令牌令牌对于应用程序(域/领域)+用户是唯一的。

This is where a user would typically revoke a permission . 这是用户通常会撤消权限的地方

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

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