OmniAuth::Web3ID
Web3ID OAuth2 Strategy for OmniAuth.
What is web3id?
- please refer to official website
Installation
Add this line to your application's Gemfile:
gem 'omniauth-web3id'
And then execute:
$ bundle
Or install it yourself as:
$ gem install omniauth-web3id
Usage
-
Generate your
key/secret
by following oauth2 setup instructions. -
Add omniauth builder middleware to your ruby app
Rails.application.config.middleware.use OmniAuth::Builder do
provider :web3id, ENV['WEB3ID_KEY'], ENV['WEB3ID_SECRET']
end
Devise integration
- Please refer to example rails application
Showcase
Final note
This gem was heavily inspired by omniauth-microsoft-office365 gem. Thank you guys for your hard work.