Web3ID OAuth2 Strategy for OmniAuth.
- please refer to official website
Add this line to your application's Gemfile:
gem 'omniauth-web3id'
And then execute:
$ bundle
Or install it yourself as:
$ gem install omniauth-web3id
-
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
- Please refer to example rails application
Screen_Recording_2022-07-24_at_23.43.27.mov
This gem was heavily inspired by omniauth-microsoft-office365 gem. Thank you guys for your hard work.