[英]How I can one more scopes to omniauth account?
我想將范圍划分為兩個選項:1.用於offline_access,電子郵件,user_relationships 2.用於offline_access,電子郵件,user_relationships和xmpp_login
如何添加兩個范圍並在它們之間切換?
我已經解決了
config.omniauth :facebook, Setting.for(:facebook_id), Setting.for(:facebook_secret), scope: 'offline_access,email,user_relationships'
config.omniauth :facebook_extended, Setting.for(:facebook_id), Setting.for(:facebook_secret), scope: 'offline_access,email,user_relationships,xmpp_login', name: :facebook_extended, strategy_class: OmniAuth::Strategies::Facebook
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.