beenhero / omniauth-weibo-oauth2 Goto Github PK
View Code? Open in Web Editor NEWOmniAuth Oauth2 strategy for weibo.com.
License: MIT License
OmniAuth Oauth2 strategy for weibo.com.
License: MIT License
我使用这个
user_omniauth_authorize_path(account.socialmedium.desc, origin: account.id, forcelogin: true)
产生下面的链接
/user_account/auth/weibo?forcelogin=true&origin=13
但是没有达到强制登陆的效果
Exception:comparison of Array with Array failed
.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/faraday-0.12.2/lib/faraday/parameters.rb:25:in `sort!'
.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/faraday-0.12.2/lib/faraday/parameters.rb:25:in `encode'
.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/faraday-0.12.2/lib/faraday/utils.rb:182:in `to_query'
.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/faraday-0.12.2/lib/faraday/request/url_encoded.rb:13:in `block in call'
.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/faraday-0.12.2/lib/faraday/request/url_encoded.rb:21:in `match_content_type'
.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/faraday-0.12.2/lib/faraday/request/url_encoded.rb:11:in `call'
.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/faraday-0.12.2/lib/faraday/rack_builder.rb:141:in `build_response'
.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/faraday-0.12.2/lib/faraday/connection.rb:386:in `run_request'
.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/oauth2-1.4.0/lib/oauth2/client.rb:99:in `request'
.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/oauth2-1.4.0/lib/oauth2/client.rb:146:in `get_token'
.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/omniauth-weibo-oauth2-0.4.3/lib/omniauth/strategies/weibo.rb:97:in `build_access_token'
.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/omniauth-oauth2-1.4.0/lib/omniauth/strategies/oauth2.rb:73:in `callback_phase'
.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/omniauth-1.6.1/lib/omniauth/strategy.rb:230:in `callback_call'
.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/omniauth-1.6.1/lib/omniauth/strategy.rb:187:in `call!'
.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/omniauth-1.6.1/lib/omniauth/strategy.rb:167:in `call'
.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/omniauth-1.6.1/lib/omniauth/builder.rb:63:in `call'
降至0.4.2后恢复正常
There is a mistake during I set omniauth.rb
Following doc, I write ENV['xxxx'], the parameters will be lost in url
Is it a mistake or there are something I havent known...
If so, please give me some hints, Thank you
@NeverMin @yanyee @beenhero is there a chance to release a new version of this gem which allows the use of omniauth v2? https://github.com/zammad/zammad has quite a few omniauth-* gem dependencies and cannot update them to use omniauth v2.
Please let us know if this is possible and if we should support you with a PR or similar.
配置支持设置image_size,但是没有设置默认值,导致options[:image_size].to_sym
报错。修改如下:
option :image_size, :middle
配置支持设置redirect_uri
,但是没有设置默认值,导致没有设置时,get_token
请求不含redirect_uri
参数,进而导致产生invalid_credential
的错误。建议回退rewrite build_access_token method。从源码看,omniauth
本身是支持配置的,所以重写build_access_token
方法没必要,没实际测试。
README 里写的 http://open.weibo.com/wiki/Oauth2 被删掉了
我的key和sercrete 都没错,为什么老是在授权后就跑到 /auth/failure?message=invalid_credentials&origin=http%3A%2F%2Fwww.awesomes.cn%2F&strategy=weibo 这呢
我的环境是
ruby 2.2.1
rails 4.2.4
Hey,
I took courtesy of reporting the malicious code injection in 0.4.6
into the CVE database.
https://diff.coditsu.io/gems/omniauth-weibo-oauth2/0.4.3/0.4.6
Just wanted to let you know. They initially assigned the CVE-2019-17268
.
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
https://segmentfault.com/q/1010000006976187/a-1020000006985587
“手工输入新浪的账号密码,可以跳到我的回调页获取token,新浪用户信息。
但是用他们的二维码扫码登录,token就获取不到了。”
我也遇到了,请问是什么原因。用账号密码登录没问题,扫码登录偶尔会callback和failure同时被回调。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.