这个地址用 gem 'omniauth-oauth2' 如何生成了?
我用 gem 'oauth2'
这样的代码 client = OmniAuth::Strategies::OAuth2.new('3776910392', 'db5ded8b38991bda44a7098b12f8727b', :site => 'https://api.weibo.com/oauth2/authorize')
redirect_to client.authorize_url(:redirect_uri => 'http://127.0.0.1:3000/auth/weibo/callback')
而不是 oauth2 的授权链接