OmniAuth Strategy for Krystal Identity
Krystal Identity is the single sign on service for Krystal. You can use this provider to authenticate your own applications using OmniAuth.
To begin, you'll need to create an OAuth Application through the Krystal Identity. Once you've done this, you'll need to provide your the client ID and secret provided within the web interface.
Once you have this, you can add the gem to your
Gemfile and add the provider to your OmniAuth configuration.
$ bundle add omniauth-krystal
Rails.application.config.middleware.use OmniAuth::Builder do provider :krystal, ENV['KRYSTAL_IDENTITY_CLIENT_ID'], ENV['KRYSTAL_IDENTITY_CLIENT_SECRET'] end