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
- Host: GitHub
- URL: https://github.com/mikerogers0/omniauth-dnanexus
- Owner: MikeRogers0
- License: mit
- Created: 2021-06-18T01:17:35.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-09T22:15:36.000Z (almost 5 years ago)
- Last Synced: 2025-02-15T19:52:56.492Z (over 1 year ago)
- Topics: dnanexus, omniauth, rubygem
- Language: Ruby
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
OmniAuth::DNAnexus
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).