An open API service indexing awesome lists of open source software.

https://github.com/mikerogers0/omniauth-dnanexus

OmniAuth Strategy for DNAnexus
https://github.com/mikerogers0/omniauth-dnanexus

dnanexus omniauth rubygem

Last synced: 4 months ago
JSON representation

OmniAuth Strategy for DNAnexus

Awesome Lists containing this project

README

          


OmniAuth::DNAnexus



Follow @MikeRogers on Twitter


Gem Version


CI Passing


OmniAuth strategy for DNAnexus

## Installation

```bash
$ bundle add omniauth-dnanexus
```
## Usage

```ruby
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

```ruby
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](https://opensource.org/licenses/MIT).