Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/fusionauth/omniauth-fusionauth
- Owner: FusionAuth
- License: apache-2.0
- Created: 2018-12-05T16:56:04.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2024-07-28T05:57:54.000Z (7 months ago)
- Last Synced: 2024-07-28T06:46:28.408Z (7 months ago)
- Topics: fusionauth, omniauth, omniauth-strategy, rails, ruby
- Language: Ruby
- Size: 9.77 KB
- Stars: 4
- Watchers: 13
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Codeowners: .github/CODEOWNERS
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.