Skip to content

MikeRogers0/omniauth-dnanexus

Repository files navigation

OmniAuth::DNAnexus

Follow @MikeRogers on Twitter Gem Version CI Passing

OmniAuth strategy for DNAnexus

Installation

$ bundle add omniauth-dnanexus

Usage

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :dnanexus, ENV["DNANEXUS_CLIENT_ID"], ENV["DNANEXUS_CLIENT_SECRET"], {
    dnanexus_api_endpoint: "https://api.dnanexus.com",
    client_options: {
      site: "https://auth.dnanexus.com",
      authorize_url: "/oauth2/authorize",
      token_url: "/oauth2/token"
    }
  }
end

DNAnexus Staging

Rails.application.config.middleware.use OmniAuth::Builder do
  provider :dnanexus, ENV["DNANEXUS_CLIENT_ID"], ENV["DNANEXUS_CLIENT_SECRET"], {
    dnanexus_api_endpoint: "https://stagingapi.dnanexus.com",
    client_options: {
      site: "https://stagingauth.dnanexus.com"
    }
  }
end

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/MikeRogers0/omniauth-dnanexus

License

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