Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

omniauth-edlink

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

omniauth-edlink

  • 0.4.1
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

Gem Version

Unofficial OmniAuth strategy for Edlink integration via OAuth 2.0.

Installation

Add the gem to your application's Gemfile:

gem 'omniauth-edlink'

And then execute:

$ bundle

Usage

First, you need to have Edlink account and application created. In the application Overview screen you can find Application Keys section with "Application ID" field. This is used as a Client ID in the Omniauth strategy. Beneath, there is a "Application Secrets" section where you can generate secret keys. Copy one of them and use them in the strategy configuration as client secret.

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :edlink, 'your-edlink-application-key', 'your-edlink-secret-key'
end

Or, alternatively, if you use Devise, you can put this in the Devise.setup section:

 config.omniauth :edlink,
                 'your-edlink-application-key',
                 'your-edlink-secret-key'

If for some reason you know the Edlink's integration id for a particular SSO request (e.g. from your application subdomain or from typed email address) and you want to take your users directly to their upstream SSO login page instead of generic Edlink login page, you can pass additional integration_id parameter to the redirect request, e.g.:

redirect_to "/auth/edlink?integration_id=#{integration_id}"

This will redirect the user to the Edlink's SSO login page for the specified integration id.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

MIT

FAQs

Package last updated on 12 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc