OmniAuth strategy for DNAnexus
$ bundle add omniauth-dnanexus
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
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
Bug reports and pull requests are welcome on GitHub at https://github.com/MikeRogers0/omniauth-dnanexus
The gem is available as open source under the terms of the MIT License.