Alipay OAuth2 Strategy for OmniAuth.
Support connecting Alipay account to third-party APP and website. Read the Alipay docs for more details: App支付宝登录, 网站支付宝登录
Add to your Gemfile
:
gem 'omniauth-alipay-oauth2', require: 'omniauth-alipay'
Then bundle install
.
Adding the middleware to a Rails app in config/initializers/omniauth.rb
:
Rails.application.config.middleware.use OmniAuth::Builder do provider :alipay, 'your_app_id', File.read('rsa_private_key.pem'), 'alipay_public_key' end
Read the OmniAuth docs for detailed instructions: https://github.com/intridea/omniauth.
Developing in sandbox environment. See: 关于沙箱
Rails.application.config.middleware.use OmniAuth::Builder do provider :alipay, 'your_app_id', File.read('rsa_private_key.pem'), 'alipay_public_key', client_options: { authorize_url: 'https://openauth.alipaydev.com/oauth2/publicAppAuthorize.htm', token_url: 'https://openauth.alipaydev.com/oauth2/token', url: 'https://openapi.alipaydev.com/gateway.do' } end
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4