Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fusionauth/omniauth-fusionauth

Ruby OmniAuth Strategy for FusionAuth
https://github.com/fusionauth/omniauth-fusionauth

fusionauth omniauth omniauth-strategy rails ruby

Last synced: 3 months ago
JSON representation

Ruby OmniAuth Strategy for FusionAuth

Awesome Lists containing this project

README

        

# OmniAuth FusionAuth

# Stop! This project is not yet complete, feel free to hack and get it working but no guarantees that it works.
Feel free to open an issue if you have suggestions or comments.

You can use the [OIDC OmniAuth `openid_connect` gem](https://fusionauth.io/docs/v1/tech/tutorials/integrate-ruby-rails) to use FusionAuth with OmniAuth until this project is complete.

## How to use this SDK

#### Installation

Add to your Gemfile:

```ruby
gem 'omniauth-fusionauth'
```

### Usage

If you are already using OmniAuth, adding FusionAuth is as simple as adding a new provider to your `OmniAuth::Builder`.

For example, in Rails you would add this in `config/initializers/omniauth.rb`:

```ruby
Rails.application.config.middleware.use OmniAuth::Builder do
provider :fusionauth, ENV['FUSIONAUTH_CLIENT_ID'], ENV['FUSIONAUTH_CLIENT_SECRET'], {scope: 'openid' }
# other providers here
end

## Contributors
Special thanks to @uxtronaut for assistance with the initial build out of this OmniAuth strategy.