0.0
Low commit activity in last 3 years
No release in over a year
log in using FEDID via Oauth
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.3.11
~> 13.0.6
~> 3.11

Runtime

~> 2.0, >= 2.0.4
 Project Readme

OmniAuth::Strategies::FedidOauth

This gem contains the FEDID strategy for OmniAuth.

How To Use It

If you are using rails, you need to add the gem to your Gemfile:

gem 'omniauth-fedid'

Once these are in, you need to add the following to your config/initializers/omniauth.rb:

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :fedid_oauth, 'client_id', 'secret', scope: 'scopes', client_options: { site: 'site' }, pkce: true, pkce_verifier: 'example'
end

OR

Inside Devise (optional if using devise gem) config/initializers/devise.rb:

config.omniauth
  :fedid_oauth,
    'client_id',
    'secret',
    scope: 'scope',
    client_options: {
      site: 'site'
    },
    pkce: true,
    pkce_verifier: 'example'

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/justcodeio/omniauth-fedid. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.